java - Suppress all Logback output to console? -
How do I configure logback to suppress all my output in the console (standard output)? In particular, I want to press (or redirect) such as LogBack's own log message:
16: 50: 25,814 Ch.qos.logback.classic.LoggerContext in [INFO] [default] - resource [logback-test.xml] 16: 50: 25,814 -info found in ch.qos.logback.classic.LoggerContext [default] - found [resource: [opt-dap] resource [logback]. Xml] /domains/ap0491/uat1/domain/instance-config/logback.xml] 16: 50: 25,816 | -WARN in ch.qos.logback.classic.LoggerContext [default] - Resource [logback.xml] occurs several times on classpath. 16: 50: 25,816 -WARN in ch.qos.logback.classic.LoggerContext [default] - Resource [logback.xml] [file: / opt / dap / domains / ap0491 / uat1 / domain / instance-config / logback.xml] 16: 50: 25,816 -WARN in ch.qos.logback.classic.LoggerContext [default] - Resource [logback.xml] [file: / opt / dap / domain / ap0491 / uat1 / domain / instance-config / logback.xml] 16: 50: 25,923 Ch.qos.logback.classic.joran.action.ConfigurationAction in -INFO - Debug Attribute is not set 16: 50: 25,924. -Ch.qos.logback in INFO Classic. Turbo.ReconfigureOnChangeFilter@1a15291 - Scans for changes in file [/opt/dap/domains/ap0491/uat1/domain/instance-config/logback.xml] every 60 seconds.
I disable all output in standard output because our production environment rejects applications from printing any message in standard output.
Note I am using logback 0.9.21, SLF4J 1.6.0, and our application runs in Weblogic 10.3.2.
This message will only show if at least one of the following is true:
< Ul>Correct this issue and those messages should be removed.
Comments
Post a Comment