Skip to content

Commit

Permalink
log only to console by default
Browse files Browse the repository at this point in the history
  • Loading branch information
anmaso committed Jul 19, 2017
1 parent 89897a7 commit 02d6fb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/mtsj/server/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
<property resource="io/oasp/logging/logback/application-logging.properties" />
<property name="appname" value="mtsj"/>
<property name="logPath" value="../logs"/>
<include resource="io/oasp/logging/logback/appenders-file-all.xml" />
<!-- uncomment appenders-file-all for writing logs to file-->
<!-- <include resource="io/oasp/logging/logback/appenders-file-all.xml" /> -->
<include resource="io/oasp/logging/logback/appender-console.xml" />

<root level="DEBUG">
Expand Down

3 comments on commit 02d6fb3

@mickume
Copy link

@mickume mickume commented on 02d6fb3 Jul 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this to work, you also need to remove line 11 - 16 ...

D: 2017-07-19 13:56:02,609] [P: ERROR] [C: ] [T: main] [L: org.springframework.boot.SpringApplication] - [M: Application startup failed]
  | java.lang.IllegalStateException: Logback configuration error detected:
  | ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [ERROR_APPENDER]. Did you define it below instead of above in the configuration file?
  | ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - See http://logback.qos.ch/codes.html#appender_order for more details.
  | ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [INFO_APPENDER]. Did you define it below instead of above in the configuration file?
  | ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - See http://logback.qos.ch/codes.html#appender_order for more details.
  | ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [DEBUG_APPENDER]. Did you define it below instead of above in the configuration file?
  | ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - See http://logback.qos.ch/codes.html#appender_order for more details.
  | at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:162)
 

@amarinso
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems that someone needs desperately a CI/CD setup for the Project 👎

Also our merge process should be revisited... @sjimenez77 👎 👎

I will change it now

@mickume
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could create a pull request from my fork of the reference application, I have the changes ready.

Please sign in to comment.