logback-prod.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!--
  2. ~ Copyright (C) 2020 Prasoon Joshi
  3. ~
  4. ~ This program is free software: you can redistribute it and/or modify
  5. ~ it under the terms of the GNU General Public License as published by
  6. ~ the Free Software Foundation, either version 3 of the License, or
  7. ~ (at your option) any later version.
  8. ~
  9. ~ This program is distributed in the hope that it will be useful,
  10. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ~ GNU General Public License for more details.
  13. ~
  14. ~ You should have received a copy of the GNU General Public License
  15. ~ along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. -->
  17. <!-- https://www.playframework.com/documentation/latest/SettingsLogger -->
  18. <configuration>
  19. <conversionRule conversionWord="coloredLevel" converterClass="play.api.libs.logback.ColoredLevel" />
  20. <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
  21. <encoder>
  22. <pattern>%coloredLevel %logger{15} - %message%n%xException{10}</pattern>
  23. </encoder>
  24. </appender>
  25. <appender name="ASYNCFILE" class="ch.qos.logback.classic.AsyncAppender">
  26. <appender-ref ref="FILE" />
  27. </appender>
  28. <appender name="ASYNCSTDOUT" class="ch.qos.logback.classic.AsyncAppender">
  29. <appender-ref ref="STDOUT" />
  30. </appender>
  31. <logger name="play" level="INFO" />
  32. <logger name="application" level="ERROR" />
  33. <root level="WARN">
  34. <!--<appender-ref ref="ASYNCFILE" />-->
  35. <appender-ref ref="ASYNCSTDOUT" />
  36. </root>
  37. </configuration>