log4j.rootLogger=DEBUG, CONSOLE ### LOGGING TO CONSOLE ######################################################### log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout # define the pattern to be used in the logs... log4j.appender.CONSOLE.layout.ConversionPattern=LSID: [%p]: %m [%c]%n # %p -> priority level of the event - (e.g. WARN) # %m -> message to be printed # %c -> category name ... in this case name of the class # %d -> Used to output the date of the logging event. example, %d{HH:mm:ss,SSS} or %d{dd MMM yyyy HH:mm:ss,SSS}. Default format is ISO8601 format # %M -> print the method name where the event was generated ... can be extremely slow. # %L -> print the line number of the event generated ... can be extremely slow. # %t -> Used to output the name of the thread that generated the log event # %n -> carriage return ################################################################################ # EXAMPLE: Print only messages of level WARN or above in the package com.foo: # log4j.logger.com.foo=WARN #log4j.logger.edu.ucsb.nceas.metacat=INFO