Re: Category is missing
You can say: wrote: > Hi, Ralph, > > thanks for the reply, understood. Question: Can I make the StatusLogger > quiet? > > Thanks, > > Jochen > > > On Mon, Aug 14, 2017 at 6:00 PM, Ralph Goers> wrote: > > What you are showing below is the output from the StatusLogger (log4j > internal logging). It is not controlled by the logging configuration as all > those logs are generated before and during configuration. > > > > Ralph > > > >> On Aug 14, 2017, at 8:33 AM, Jochen Wiedmann > wrote: > >> > >> Hi, > >> > >> my log4j2.xml specifies a pattern (%d{HH:mm:ss.SSS} %-5level [%t] %c - > >> %msg%n), which ought to include the category. However, my log file > >> looks like below. Am I missing something obvious here? > >> > >> Thanks, > >> > >> Jochen > >> > >> 2017-08-14 16:38:09,700 localhost-startStop-1 DEBUG PluginManager > >> 'Core' found 112 plugins > >> 2017-08-14 16:38:09,700 localhost-startStop-1 DEBUG PluginManager > >> 'Level' found 0 plugins > >> 2017-08-14 16:38:09,705 localhost-startStop-1 DEBUG PluginManager > >> 'Lookup' found 13 plugins > >> 2017-08-14 16:38:09,707 localhost-startStop-1 DEBUG Building > >> Plugin[name=layout, > >> class=org.apache.logging.log4j.core.layout.PatternLayout]. > >> 2017-08-14 16:38:09,723 localhost-startStop-1 TRACE > >> TypeConverterRegistry initializing. > >> 2017-08-14 16:38:09,723 localhost-startStop-1 DEBUG PluginManager > >> 'TypeConverter' found 26 plugins > >> 2017-08-14 16:38:09,745 localhost-startStop-1 DEBUG > >> PatternLayout$Builder(pattern="%d{HH:mm:ss.SSS} %-5level [%t] %c - > >> %msg%n", PatternSelector=null, > >> Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), > >> Replace=null, charset="null", alwaysWriteExceptions="null", > >> disableAnsi="null", noConsoleNoAnsi="null", header="null", > >> footer="null") > >> 2017-08-14 16:38:09,746 localhost-startStop-1 DEBUG PluginManager > >> 'Converter' found 41 plugins > >> 2017-08-14 16:38:09,747 localhost-startStop-1 DEBUG Building > >> Plugin[name=appender, > >> class=org.apache.logging.log4j.core.appender.ConsoleAppender]. > >> 2017-08-14 16:38:09,761 localhost-startStop-1 DEBUG > >> ConsoleAppender$Builder(target="SYSTEM_OUT", follow="null", > >> direct="null", bufferedIo="null", bufferSize="null", > >> immediateFlush="null", ignoreExceptions="null", > >> PatternLayout(%d{HH:mm:ss.SSS} %-5level [%t] %c - %msg%n), > >> name="Console", > >> Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), > >> Filter=null) > >> 2017-08-14 16:38:09,763 localhost-startStop-1 DEBUG Jansi is not > >> installed, cannot find org.fusesource.jansi.WindowsAnsiOutputStream > >> 2017-08-14 16:38:09,764 localhost-startStop-1 DEBUG Starting > >> OutputStreamManager SYSTEM_OUT.false.false > >> 2017-08-14 16:38:09,764 localhost-startStop-1 DEBUG Building > >> Plugin[name=appenders, > >> class=org.apache.logging.log4j.core.config.AppendersPlugin]. > >> 2017-08-14 16:38:09,767 localhost-startStop-1 DEBUG > createAppenders(={Console}) > >> 2017-08-14 16:38:09,767 localhost-startStop-1 DEBUG Building > >> Plugin[name=AppenderRef, > >> class=org.apache.logging.log4j.core.config.AppenderRef]. > >> 2017-08-14 16:38:09,774 localhost-startStop-1 DEBUG > >> createAppenderRef(ref="Console", level="null", Filter=null) > >> 2017-08-14 16:38:09,774 localhost-startStop-1 DEBUG Building > >> Plugin[name=root, > >> class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger]. > >> 2017-08-14 16:38:09,775 localhost-startStop-1 DEBUG > >> createLogger(additivity="null", level="TRACE", includeLocation="null", > >> ={Console}, ={}, > >> Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), > >> Filter=null) > >> 2017-08-14 16:38:09,782 localhost-startStop-1 DEBUG Building > >> Plugin[name=loggers, > >> class=org.apache.logging.log4j.core.config.LoggersPlugin]. > >> 2017-08-14 16:38:09,784 localhost-startStop-1 DEBUG > createLoggers(={root}) > >> 2017-08-14 16:38:09,785 localhost-startStop-1 DEBUG Configuration > >> XmlConfiguration[location=C:\opt\apache-tomcat-8.5.20\lib\ > common\log4j2.xml] > >> initialized > >> 2017-08-14 16:38:09,786 localhost-startStop-1 DEBUG Starting > >> configuration XmlConfiguration[location=C:\ > opt\apache-tomcat-8.5.20\lib\common\log4j2.xml] > >> 2017-08-14 16:38:09,786 localhost-startStop-1 DEBUG Started > >> configuration XmlConfiguration[location=C:\ > opt\apache-tomcat-8.5.20\lib\common\log4j2.xml] > >> OK. > >> 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE Stopping > >> org.apache.logging.log4j.core.config.DefaultConfiguration@79a417b3... > >> 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE > >> DefaultConfiguration notified 1 ReliabilityStrategies that config will > >> be stopped. > >> 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE > >> DefaultConfiguration stopping root LoggerConfig. > >> 2017-08-14 16:38:09,788 localhost-startStop-1 TRACE > >> DefaultConfiguration notifying ReliabilityStrategies
Re: Category is missing
Hi, Ralph, thanks for the reply, understood. Question: Can I make the StatusLogger quiet? Thanks, Jochen On Mon, Aug 14, 2017 at 6:00 PM, Ralph Goerswrote: > What you are showing below is the output from the StatusLogger (log4j > internal logging). It is not controlled by the logging configuration as all > those logs are generated before and during configuration. > > Ralph > >> On Aug 14, 2017, at 8:33 AM, Jochen Wiedmann >> wrote: >> >> Hi, >> >> my log4j2.xml specifies a pattern (%d{HH:mm:ss.SSS} %-5level [%t] %c - >> %msg%n), which ought to include the category. However, my log file >> looks like below. Am I missing something obvious here? >> >> Thanks, >> >> Jochen >> >> 2017-08-14 16:38:09,700 localhost-startStop-1 DEBUG PluginManager >> 'Core' found 112 plugins >> 2017-08-14 16:38:09,700 localhost-startStop-1 DEBUG PluginManager >> 'Level' found 0 plugins >> 2017-08-14 16:38:09,705 localhost-startStop-1 DEBUG PluginManager >> 'Lookup' found 13 plugins >> 2017-08-14 16:38:09,707 localhost-startStop-1 DEBUG Building >> Plugin[name=layout, >> class=org.apache.logging.log4j.core.layout.PatternLayout]. >> 2017-08-14 16:38:09,723 localhost-startStop-1 TRACE >> TypeConverterRegistry initializing. >> 2017-08-14 16:38:09,723 localhost-startStop-1 DEBUG PluginManager >> 'TypeConverter' found 26 plugins >> 2017-08-14 16:38:09,745 localhost-startStop-1 DEBUG >> PatternLayout$Builder(pattern="%d{HH:mm:ss.SSS} %-5level [%t] %c - >> %msg%n", PatternSelector=null, >> Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), >> Replace=null, charset="null", alwaysWriteExceptions="null", >> disableAnsi="null", noConsoleNoAnsi="null", header="null", >> footer="null") >> 2017-08-14 16:38:09,746 localhost-startStop-1 DEBUG PluginManager >> 'Converter' found 41 plugins >> 2017-08-14 16:38:09,747 localhost-startStop-1 DEBUG Building >> Plugin[name=appender, >> class=org.apache.logging.log4j.core.appender.ConsoleAppender]. >> 2017-08-14 16:38:09,761 localhost-startStop-1 DEBUG >> ConsoleAppender$Builder(target="SYSTEM_OUT", follow="null", >> direct="null", bufferedIo="null", bufferSize="null", >> immediateFlush="null", ignoreExceptions="null", >> PatternLayout(%d{HH:mm:ss.SSS} %-5level [%t] %c - %msg%n), >> name="Console", >> Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), >> Filter=null) >> 2017-08-14 16:38:09,763 localhost-startStop-1 DEBUG Jansi is not >> installed, cannot find org.fusesource.jansi.WindowsAnsiOutputStream >> 2017-08-14 16:38:09,764 localhost-startStop-1 DEBUG Starting >> OutputStreamManager SYSTEM_OUT.false.false >> 2017-08-14 16:38:09,764 localhost-startStop-1 DEBUG Building >> Plugin[name=appenders, >> class=org.apache.logging.log4j.core.config.AppendersPlugin]. >> 2017-08-14 16:38:09,767 localhost-startStop-1 DEBUG >> createAppenders(={Console}) >> 2017-08-14 16:38:09,767 localhost-startStop-1 DEBUG Building >> Plugin[name=AppenderRef, >> class=org.apache.logging.log4j.core.config.AppenderRef]. >> 2017-08-14 16:38:09,774 localhost-startStop-1 DEBUG >> createAppenderRef(ref="Console", level="null", Filter=null) >> 2017-08-14 16:38:09,774 localhost-startStop-1 DEBUG Building >> Plugin[name=root, >> class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger]. >> 2017-08-14 16:38:09,775 localhost-startStop-1 DEBUG >> createLogger(additivity="null", level="TRACE", includeLocation="null", >> ={Console}, ={}, >> Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), >> Filter=null) >> 2017-08-14 16:38:09,782 localhost-startStop-1 DEBUG Building >> Plugin[name=loggers, >> class=org.apache.logging.log4j.core.config.LoggersPlugin]. >> 2017-08-14 16:38:09,784 localhost-startStop-1 DEBUG createLoggers(={root}) >> 2017-08-14 16:38:09,785 localhost-startStop-1 DEBUG Configuration >> XmlConfiguration[location=C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml] >> initialized >> 2017-08-14 16:38:09,786 localhost-startStop-1 DEBUG Starting >> configuration >> XmlConfiguration[location=C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml] >> 2017-08-14 16:38:09,786 localhost-startStop-1 DEBUG Started >> configuration >> XmlConfiguration[location=C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml] >> OK. >> 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE Stopping >> org.apache.logging.log4j.core.config.DefaultConfiguration@79a417b3... >> 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE >> DefaultConfiguration notified 1 ReliabilityStrategies that config will >> be stopped. >> 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE >> DefaultConfiguration stopping root LoggerConfig. >> 2017-08-14 16:38:09,788 localhost-startStop-1 TRACE >> DefaultConfiguration notifying ReliabilityStrategies that appenders >> will be stopped. >> 2017-08-14 16:38:09,788 localhost-startStop-1 TRACE >> DefaultConfiguration stopping remaining Appenders. >> 2017-08-14 16:38:09,788 localhost-startStop-1 DEBUG Shutting down >>
Re: Category is missing
What you are showing below is the output from the StatusLogger (log4j internal logging). It is not controlled by the logging configuration as all those logs are generated before and during configuration. Ralph > On Aug 14, 2017, at 8:33 AM, Jochen Wiedmann> wrote: > > Hi, > > my log4j2.xml specifies a pattern (%d{HH:mm:ss.SSS} %-5level [%t] %c - > %msg%n), which ought to include the category. However, my log file > looks like below. Am I missing something obvious here? > > Thanks, > > Jochen > > 2017-08-14 16:38:09,700 localhost-startStop-1 DEBUG PluginManager > 'Core' found 112 plugins > 2017-08-14 16:38:09,700 localhost-startStop-1 DEBUG PluginManager > 'Level' found 0 plugins > 2017-08-14 16:38:09,705 localhost-startStop-1 DEBUG PluginManager > 'Lookup' found 13 plugins > 2017-08-14 16:38:09,707 localhost-startStop-1 DEBUG Building > Plugin[name=layout, > class=org.apache.logging.log4j.core.layout.PatternLayout]. > 2017-08-14 16:38:09,723 localhost-startStop-1 TRACE > TypeConverterRegistry initializing. > 2017-08-14 16:38:09,723 localhost-startStop-1 DEBUG PluginManager > 'TypeConverter' found 26 plugins > 2017-08-14 16:38:09,745 localhost-startStop-1 DEBUG > PatternLayout$Builder(pattern="%d{HH:mm:ss.SSS} %-5level [%t] %c - > %msg%n", PatternSelector=null, > Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), > Replace=null, charset="null", alwaysWriteExceptions="null", > disableAnsi="null", noConsoleNoAnsi="null", header="null", > footer="null") > 2017-08-14 16:38:09,746 localhost-startStop-1 DEBUG PluginManager > 'Converter' found 41 plugins > 2017-08-14 16:38:09,747 localhost-startStop-1 DEBUG Building > Plugin[name=appender, > class=org.apache.logging.log4j.core.appender.ConsoleAppender]. > 2017-08-14 16:38:09,761 localhost-startStop-1 DEBUG > ConsoleAppender$Builder(target="SYSTEM_OUT", follow="null", > direct="null", bufferedIo="null", bufferSize="null", > immediateFlush="null", ignoreExceptions="null", > PatternLayout(%d{HH:mm:ss.SSS} %-5level [%t] %c - %msg%n), > name="Console", > Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), > Filter=null) > 2017-08-14 16:38:09,763 localhost-startStop-1 DEBUG Jansi is not > installed, cannot find org.fusesource.jansi.WindowsAnsiOutputStream > 2017-08-14 16:38:09,764 localhost-startStop-1 DEBUG Starting > OutputStreamManager SYSTEM_OUT.false.false > 2017-08-14 16:38:09,764 localhost-startStop-1 DEBUG Building > Plugin[name=appenders, > class=org.apache.logging.log4j.core.config.AppendersPlugin]. > 2017-08-14 16:38:09,767 localhost-startStop-1 DEBUG > createAppenders(={Console}) > 2017-08-14 16:38:09,767 localhost-startStop-1 DEBUG Building > Plugin[name=AppenderRef, > class=org.apache.logging.log4j.core.config.AppenderRef]. > 2017-08-14 16:38:09,774 localhost-startStop-1 DEBUG > createAppenderRef(ref="Console", level="null", Filter=null) > 2017-08-14 16:38:09,774 localhost-startStop-1 DEBUG Building > Plugin[name=root, > class=org.apache.logging.log4j.core.config.LoggerConfig$RootLogger]. > 2017-08-14 16:38:09,775 localhost-startStop-1 DEBUG > createLogger(additivity="null", level="TRACE", includeLocation="null", > ={Console}, ={}, > Configuration(C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml), > Filter=null) > 2017-08-14 16:38:09,782 localhost-startStop-1 DEBUG Building > Plugin[name=loggers, > class=org.apache.logging.log4j.core.config.LoggersPlugin]. > 2017-08-14 16:38:09,784 localhost-startStop-1 DEBUG createLoggers(={root}) > 2017-08-14 16:38:09,785 localhost-startStop-1 DEBUG Configuration > XmlConfiguration[location=C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml] > initialized > 2017-08-14 16:38:09,786 localhost-startStop-1 DEBUG Starting > configuration > XmlConfiguration[location=C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml] > 2017-08-14 16:38:09,786 localhost-startStop-1 DEBUG Started > configuration > XmlConfiguration[location=C:\opt\apache-tomcat-8.5.20\lib\common\log4j2.xml] > OK. > 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE Stopping > org.apache.logging.log4j.core.config.DefaultConfiguration@79a417b3... > 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE > DefaultConfiguration notified 1 ReliabilityStrategies that config will > be stopped. > 2017-08-14 16:38:09,787 localhost-startStop-1 TRACE > DefaultConfiguration stopping root LoggerConfig. > 2017-08-14 16:38:09,788 localhost-startStop-1 TRACE > DefaultConfiguration notifying ReliabilityStrategies that appenders > will be stopped. > 2017-08-14 16:38:09,788 localhost-startStop-1 TRACE > DefaultConfiguration stopping remaining Appenders. > 2017-08-14 16:38:09,788 localhost-startStop-1 DEBUG Shutting down > OutputStreamManager SYSTEM_OUT.false.false-1 > 2017-08-14 16:38:09,789 localhost-startStop-1 DEBUG Shut down > OutputStreamManager SYSTEM_OUT.false.false-1, all resources released: > true > 2017-08-14 16:38:09,789 localhost-startStop-1 DEBUG Appender > DefaultConsole-1 stopped with status true >