While logback can really work within my localtest (sbt-test) as it leaves all.log but when daemonized, it can't.
it's reproducible in both travis (ubuntu 14.04 server) and my local Vagrant (centos 7.2). The jsvc versions are 1.0.15-dev and 1.0.13 respectively.
logback's StatusPrint says it sets up properly.
03:47:33,379 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [/opt/akashic-storage/etc/logback.xml] at [file:/opt/akashic-storage/etc/logback.xml]
03:47:33,527 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
03:47:33,529 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ERROR_LOG]
03:47:33,569 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
03:47:33,604 |-INFO in ch.qos.logback.core.FileAppender[ERROR_LOG] - File property is set to [/var/akashic-storage/log/error.log]
03:47:33,605 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
03:47:33,606 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ADMIN_LOG]
03:47:33,606 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
03:47:33,607 |-INFO in ch.qos.logback.core.FileAppender[ADMIN_LOG] - File property is set to [/var/akashic-storage/log/admin.log]
03:47:33,607 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
03:47:33,607 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ALL_LOG]
03:47:33,608 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
03:47:33,608 |-INFO in ch.qos.logback.core.FileAppender[ALL_LOG] - File property is set to [/var/akashic-storage/log/all.log]
03:47:33,609 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [akashic.storage.admin] to INFO
03:47:33,609 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ADMIN_LOG] to Logger[akashic.storage.admin]
03:47:33,609 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
03:47:33,609 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ALL_LOG] to Logger[ROOT]
03:47:33,610 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
03:47:33,611 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@57855c9a - Registering current configuration as safe fallback point
03:47:33,379 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [/opt/akashic-storage/etc/logback.xml] at [file:/opt/akashic-storage/etc/logback.xml]
03:47:33,527 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
03:47:33,529 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ERROR_LOG]
03:47:33,569 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
03:47:33,604 |-INFO in ch.qos.logback.core.FileAppender[ERROR_LOG] - File property is set to [/var/akashic-storage/log/error.log]
03:47:33,605 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
03:47:33,606 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ADMIN_LOG]
03:47:33,606 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
03:47:33,607 |-INFO in ch.qos.logback.core.FileAppender[ADMIN_LOG] - File property is set to [/var/akashic-storage/log/admin.log]
03:47:33,607 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.FileAppender]
03:47:33,607 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [ALL_LOG]
03:47:33,608 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
03:47:33,608 |-INFO in ch.qos.logback.core.FileAppender[ALL_LOG] - File property is set to [/var/akashic-storage/log/all.log]
03:47:33,609 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [akashic.storage.admin] to INFO
03:47:33,609 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ADMIN_LOG] to Logger[akashic.storage.admin]
03:47:33,609 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
03:47:33,609 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [ALL_LOG] to Logger[ROOT]
03:47:33,610 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
03:47:33,611 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@57855c9a - Registering current configuration as safe fallback point
Does anybody have ideas on this issue? I am thinking of jsvc can't go well with logback or jar file that is generated by sbt-assembly.
And I want to ask if there is some more easy way to daemonize akka-http server program.
While logback can really work within my localtest (sbt-test) as it leaves all.log but when daemonized, it can't.
it's reproducible in both travis (ubuntu 14.04 server) and my local Vagrant (centos 7.2). The jsvc versions are 1.0.15-dev and 1.0.13 respectively.
logback's StatusPrint says it sets up properly.
Does anybody have ideas on this issue? I am thinking of jsvc can't go well with logback or jar file that is generated by sbt-assembly.
And I want to ask if there is some more easy way to daemonize akka-http server program.