Package org.apache.rat.utils
Class DefaultLog
java.lang.Object
org.apache.rat.utils.DefaultLog
- All Implemented Interfaces:
Log
A default implementation of Log that writes to System.out and System.err
-
Nested Class Summary
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Log
Retrieves teh DefaultLog instance.getLevel()
Gets the level we are writing at.void
Writes a message at a specific log level.static Log
setInstance
(Log newInstance) Sets the default log instance.void
Sets the level.
-
Field Details
-
ENV_VAR
The environment variable to set the default log level that Rat should log at. If not specified INFO is used.- See Also:
-
-
Method Details
-
getInstance
Retrieves teh DefaultLog instance.- Returns:
- the Default log instance.
-
setInstance
Sets the default log instance. If not set an instance of DefaultLog will be returned- Parameters:
newInstance
- a Log to use as the default.- Returns:
- the old instance.
-
setLevel
Sets the level. Log messages below the specified level will not be written to the log. -
getLevel
Gets the level we are writing at. -
log
Description copied from interface:Log
Writes a message at a specific log level.
-