Package io.github.the_sdet.logger
Class Log
java.lang.Object
io.github.the_sdet.logger.Log
Utility class for logging messages using Log4j. This class provides methods
for logging messages at different levels: INFO, ERROR, DEBUG, and WARN.
The logger is initialized statically, ensuring that it's configured and ready for use. The static block configures the logger, setting its log level to DEBUG, and then initializes it. This ensures that the logger is properly configured before any logging operations are performed.
- Author:
- Pabitra Swain ([email protected])
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidLog a debug message.static voidLog an error message.static voidLog an error message with an associated exception.static voidLog an informational message.static voidLog a warning message.
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
info
Log an informational message.- Parameters:
message- The message to log.
-
error
Log an error message.- Parameters:
message- The message to log.
-
error
Log an error message with an associated exception.- Parameters:
message- The message to log.e- The exception to include in the log.
-
debug
Log a debug message.- Parameters:
message- The message to log.
-
warn
Log a warning message.- Parameters:
message- The message to log.
-