Package com.polarion.platform.jobs
Interface ILogger
- All Superinterfaces:
ILogger
Logging subsystem interface.
This is the minimal interface suitable for various logging systems which are out there.
Implementation should follow two rules:
- logging system is a "no-exception zone" - never ever throw any exception from these methods
- if logging system lacks some category, use some other - never ever ignore anything unless told so by the user (with the exception of debugs)
Supports messages implementing IStructuredLogMessage
.
- Author:
- Stepan Roh, Polarion Software
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturn all recorded log events.Returns the main log file of this job.Returns a collection of all logging files associated with the logger of the root job.Methods inherited from interface com.polarion.core.util.logging.ILogger
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn
-
Method Details
-
getLogFiles
Returns a collection of all logging files associated with the logger of the root job.Returned files may or may not exist. (If created on-demand when something is logged.)
The logging file format used depends on the logging framework.
The logging framework does not need to support logging to files.
Modifying, removing, or otherwise altering these files is forbidden. However, the logging framework should recover from any damage.
- Returns:
Collection
ofFile
s (notnull
)
-
getLogFile
File getLogFile()Returns the main log file of this job.- Since:
- 3.7.3
-
getLogEvents
Return all recorded log events.Recorded events will most probably not survive through restarts.
Note that returned log event classes will not be
Serializable
.
-