Package org.pentaho.platform.api.engine
Interface ILogger
- All Known Subinterfaces:
IComponent
,IContentGenerator
,IDataComponent
,IPentahoSession
,IPreparedComponent
,IRuntimeContext
,IRuntimeRepository
,ISolutionEngine
public interface ILogger
The Logger is the main interface into the platform's logging subsystem.
Note: Documentation taken from Log4j Javadoc documentation.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final int
The DEBUG Level designates fine-grained informational events that are most useful to debug an application.static final int
The ERROR level designates error events that might still allow the application to continue running.static final int
The FATAL level designates very severe error events that will presumably lead the application to abort.static final int
The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.static final String
static final String
static final String
static final int
The TRACE has the lowest possible rank and is intended to turn on all logging.static final int
static final int
The WARN level designates potentially harmful situations. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log a message object with theDEBUG
Level.void
Log a message with theDEBUG
level including the stack trace of the Throwable error passed as parameter.void
Log a message object with theERROR
Level.void
Log a message with theERROR
level including the stack trace of the Throwable error passed as parameter.void
Log a message object with theFATAL
Level.void
Log a message with theFATAL
level including the stack trace of the Throwable error passed as parameter.int
Return the logging level for this Logger.void
Log a message object with theINFO
Level.void
Log a message with theINFO
level including the stack trace of the Throwable error passed as parameter.void
setLoggingLevel
(int loggingLevel) Set the logging level for this Logger.void
Log a message object with theTRACE
Level.void
Log a message with theTRACE
level including the stack trace of the Throwable error passed as parameter.void
Log a message object with theWARN
Level.void
Log a message with theWARN
level including the stack trace of the Throwable error passed as parameter.
-
Field Details
-
TRACE
static final int TRACEThe TRACE has the lowest possible rank and is intended to turn on all logging.- See Also:
-
DEBUG
static final int DEBUGThe DEBUG Level designates fine-grained informational events that are most useful to debug an application.- See Also:
-
INFO
static final int INFOThe INFO level designates informational messages that highlight the progress of the application at coarse-grained level.- See Also:
-
WARN
static final int WARNThe WARN level designates potentially harmful situations.- See Also:
-
ERROR
static final int ERRORThe ERROR level designates error events that might still allow the application to continue running.- See Also:
-
FATAL
static final int FATALThe FATAL level designates very severe error events that will presumably lead the application to abort.- See Also:
-
UNKNOWN
static final int UNKNOWN- See Also:
-
SOLUTION_LOG
- See Also:
-
ACTIVITY_LOG
- See Also:
-
INSTANCE_LOG
- See Also:
-
SESSION_LOG
- See Also:
-
-
Method Details
-
getLoggingLevel
int getLoggingLevel()Return the logging level for this Logger.- Returns:
- logging level
-
setLoggingLevel
void setLoggingLevel(int loggingLevel) Set the logging level for this Logger.Valid logging levels are
TRACE
,DEBUG
,INFO
,WARN
,ERROR
, andFATAL
.- Parameters:
loggingLevel
-
-
trace
Log a message object with theTRACE
Level.- Parameters:
message
- the message object to log.
-
debug
Log a message object with theDEBUG
Level.- Parameters:
message
- the message object to log.
-
info
Log a message object with theINFO
Level.- Parameters:
message
- the message object to log.
-
warn
Log a message object with theWARN
Level.- Parameters:
message
- the message object to log.
-
error
Log a message object with theERROR
Level.- Parameters:
message
- the message object to log.
-
fatal
Log a message object with theFATAL
Level.- Parameters:
message
- the message object to log.
-
trace
Log a message with theTRACE
level including the stack trace of the Throwable error passed as parameter.- Parameters:
message
- the message object to log.error
- the exception to log, including its stack trace.
-
debug
Log a message with theDEBUG
level including the stack trace of the Throwable error passed as parameter.- Parameters:
message
- the message object to log.error
- the exception to log, including its stack trace.
-
info
Log a message with theINFO
level including the stack trace of the Throwable error passed as parameter.- Parameters:
message
- the message object to log.error
- the exception to log, including its stack trace.
-
warn
Log a message with theWARN
level including the stack trace of the Throwable error passed as parameter.- Parameters:
message
- the message object to log.error
- the exception to log, including its stack trace.
-
error
Log a message with theERROR
level including the stack trace of the Throwable error passed as parameter.- Parameters:
message
- the message object to log.error
- the exception to log, including its stack trace.
-
fatal
Log a message with theFATAL
level including the stack trace of the Throwable error passed as parameter.- Parameters:
message
- the message object to log.error
- the exception to log, including its stack trace.
-