Class SummaryLogger
java.lang.Object
jp.ecuacion.lib.core.logging.SummaryLogger
Logs start and end time of the timer-triggered exections,
espacially used in batch programs. Not used for web or rest.
This is mainly expected to use in the ecuacion-lib or other library,
but not in specific apps.
Although you can use it in the case that you need to skip the execution in some condition
or things like this.
You are also allowed to log what is as important as the start and end status,
but in most cases it's better to log with DetailLogger.
Available loglevels are as follows:
- info : uses for start and normal end
- warn : uses for skip and any other special way of enging executions
- error: uses for abnormal end
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs message with "error" loglevel.voidLogs message with "info" loglevel.voidLogs message with logLevel.voidLogs message with "warn" loglevel.
-
Field Details
-
internalLogger
protected org.slf4j.Logger internalLoggerinternalLogger.
-
-
Constructor Details
-
SummaryLogger
public SummaryLogger()Constructs a new instance with a fixed logger name.
-
-
Method Details
-
info
Logs message with "info" loglevel.- Parameters:
message- message to log. Cannot benull.
-
warn
Logs message with "warn" loglevel.- Parameters:
message- message to log. Cannot benull.
-
error
Logs message with "error" loglevel.- Parameters:
message- message to log. Cannot benull.
-
log
Logs message with logLevel.- Parameters:
logLevel- logLevel. Cannot benull.message- message. Cannot benull.
-