Extensions to the JDK logging framework. This package provides:
Loggingutility class with static methods for fetching a logger (see Choosing a logging framework below) or logging an exception.
PerformanceLevelwith configurable levels for logging the duration of lengthly processes.
MonolineFormatterfor formatting the log records on single line with colors, for easier reading on the console output.
Choosing a logging frameworkThe SIS project uses the standard
LoggerAPI for its logging, but this package allows redirection of logging messages to some other frameworks like Log4J. We recommend to stick to standard JDK logging when possible. However if inter-operability with an other logging framework is required, then the only action needed is to include one of the following JAR on the classpath:
sis-logging-commons.jarfor Apache logging
sis-logging-log4j.jarfor Log4J logging
- Any other JAR registering a
Note for SIS developersAll SIS code should fetch their logger through a call to our custom
Logging.getLogger(String)method instead of the standard
Logger.getLogger(String)method. This is necessary in order to give SIS a chance to redirect log events to an other logging framework.
- See Also:
Defined in the
ClassDescriptionAn adapter that redirect all JDK logging events to an other logging framework.A factory for Java
Loggerwrapping an other logging framework.A set of utilities method for configuring loggings in SIS.A formatter writing log messages on a single line.Logging levels for data processing with execution time measurements.