Class SystemSupportLoggerAdapter

java.lang.Object
org.broadleafcommerce.common.logging.AbstractSupportLoggerAdapter
org.broadleafcommerce.common.logging.SystemSupportLoggerAdapter
All Implemented Interfaces:
SupportLoggerAdapter

public class SystemSupportLoggerAdapter extends AbstractSupportLoggerAdapter implements SupportLoggerAdapter

Default Implementation of SupportLoggerAdapter that sends all support log messages to the console (System.out). The following System Properties are supported to configure the behavior of this logger:

  • SystemSupportLoggerAdapter.showDateTime - Set to true if you want the current date and time to be included in output messages. Default is true
  • SystemSupportLoggerAdapter.dateTimeFormat - The date and time format to be used in the output messages. The pattern describing the date and time format is defined by SimpleDateFormat. If the format is not specified or is invalid, the number of milliseconds since start up will be output.
  • SystemSupportLoggerAdapter.showThreadName - Set to true if you want to output the current thread name. Defaults to false.
  • SystemSupportLoggerAdapter.showLogName - Set to true if you want the Logger instance name to be included in output messages. Defaults to true.
  • SystemSupportLoggerAdapter.levelInBrackets - Should the level string be output in brackets? Defaults to true.
  • SystemSupportLoggerAdapter.showNonSupportLevels - Show non-support level logs (i.e. DEBUG, ERROR, FATAL, INFO, WARN) Defaults to false.

This implementation is heavily inspired by SLF4J's SimpleLogger.

Author:
Elbert Bautista (elbertbautista)