Package tsp.csc4509.common
Class Log
java.lang.Object
tsp.csc4509.common.Log
This class contains the configuration of some logging facilities.
To recapitulate, logging levels are: TRACE, DEBUG, INFO, WARN, ERROR, FATAL.
- Author:
- Denis Conan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.logging.log4j.Loggerlogger object for the communication part.static final org.apache.logging.log4j.Loggerlogger object for the general part.static final Stringname of logger for the communication part.static final Stringname of logger for the general part (config, etc.).static final Stringname of logger for the testing part (used in JUnit classes).static final booleanstates whether logging is enabled or not.static final org.apache.logging.log4j.Loggerlogger object for the testing part. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetLevel(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level) configures a logger to a level.
-
Field Details
-
ON
public static final boolean ONstates whether logging is enabled or not.- See Also:
-
LOGGER_NAME_GEN
name of logger for the general part (config, etc.).- See Also:
-
GEN
public static final org.apache.logging.log4j.Logger GENlogger object for the general part. -
LOGGER_NAME_COMM
name of logger for the communication part.- See Also:
-
COMM
public static final org.apache.logging.log4j.Logger COMMlogger object for the communication part. -
LOGGER_NAME_TEST
name of logger for the testing part (used in JUnit classes).- See Also:
-
TEST
public static final org.apache.logging.log4j.Logger TESTlogger object for the testing part.
-
-
Method Details
-
setLevel
public static void setLevel(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level) configures a logger to a level.- Parameters:
logger- the logger.level- the level.
-