############################################################ # EM Diagnostic Assistant Logging Configuration File ############################################################ # You can use a different file by specifying a filename # with the java.util.logging.config.file system property. # For example java -Djava.util.logging.config.file=myfile ############################################################ ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ # handlers specifies a comma separated list of log Handler handlers= java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter # Limit the message that are printed on the console java.util.logging.ConsoleHandler.level=WARNING # Handler specific properties. # default file output is in user's home directory. This is updated dynamically # java.util.logging.FileHandler.pattern = output/log/diagnostic_assistant.log # handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler handlers= java.util.logging.FileHandler java.util.logging.FileHandler.append = true java.util.logging.FileHandler.limit = 15728640 java.util.logging.FileHandler.count = 1 java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter # java.util.logging.SimpleFormatter.format=%1$tc|%4$s|%5$s%6$s%n java.util.logging.SimpleFormatter.format=[%1$tm-%1$td-%1$tY %1$tk:%1$tM:%1$tS:%1$tL] %2$s | %4$s | %5$s%6$s%n # TODO: How to get Java 6 on one line with source # JAVA 7 Supports: # where the arguments are: # format - the java.util.Formatter format string specified in the java.util.logging.SimpleFormatter.format property or the default format. ############# # 1 - date - a Date object representing event time of the log record. # 2 - source - a string representing the caller, if available; otherwise, the logger's name. # 3 - logger - the logger's name. # 4 - level - the log level. # 5 - message - the formatted log message returned from the Formatter.formatMessage(LogRecord) method. It uses java.text formatting and does not use the java.util.Formatter format argument. # 6 - thrown - a string representing the throwable associated with the log record and its backtrace beginning with a newline character, if any; otherwise, an empty string. # Some example formats: # java.util.logging.SimpleFormatter.format="%4$s: %5$s [%1$tc]%n" # This prints 1 line with the log level (4$), the log message (5$) and the timestamp (1$) in a square bracket. # # WARNING: warning message [Tue Mar 22 13:11:31 PDT 2011] # # java.util.logging.SimpleFormatter.format="%1$tc %2$s%n%4$s: %5$s%6$s%n" # This prints 2 lines where the first line includes the timestamp (1$) and the source (2$); the second line includes the log level (4$) and the log message (5$) followed with the throwable and its backtrace (6$), if any: # FileHandler default log level java.util.logging.FileHandler.level=WARNING # Set class or package specific log levels: # ALL (All messages) # SEVERE (highest value) # WARNING # INFO # CONFIG # FINE # FINER # FINEST (lowest value) # Set the default logging level .level=WARNING