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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intThe DEBUG Level designates fine-grained informational events that are most useful to debug an application.static final intThe ERROR level designates error events that might still allow the application to continue running.static final intThe FATAL level designates very severe error events that will presumably lead the application to abort.static final intThe INFO level designates informational messages that highlight the progress of the application at coarse-grained level.static final Stringstatic final Stringstatic final Stringstatic final intThe TRACE has the lowest possible rank and is intended to turn on all logging.static final intstatic final intThe WARN level designates potentially harmful situations. -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message object with theDEBUGLevel.voidLog a message with theDEBUGlevel including the stack trace of the Throwable error passed as parameter.voidLog a message object with theERRORLevel.voidLog a message with theERRORlevel including the stack trace of the Throwable error passed as parameter.voidLog a message object with theFATALLevel.voidLog a message with theFATALlevel including the stack trace of the Throwable error passed as parameter.intReturn the logging level for this Logger.voidLog a message object with theINFOLevel.voidLog a message with theINFOlevel including the stack trace of the Throwable error passed as parameter.voidsetLoggingLevel(int loggingLevel) Set the logging level for this Logger.voidLog a message object with theTRACELevel.voidLog a message with theTRACElevel including the stack trace of the Throwable error passed as parameter.voidLog a message object with theWARNLevel.voidLog a message with theWARNlevel 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 theTRACELevel.- Parameters:
message- the message object to log.
-
debug
Log a message object with theDEBUGLevel.- Parameters:
message- the message object to log.
-
info
Log a message object with theINFOLevel.- Parameters:
message- the message object to log.
-
warn
Log a message object with theWARNLevel.- Parameters:
message- the message object to log.
-
error
Log a message object with theERRORLevel.- Parameters:
message- the message object to log.
-
fatal
Log a message object with theFATALLevel.- Parameters:
message- the message object to log.
-
trace
Log a message with theTRACElevel 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 theDEBUGlevel 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 theINFOlevel 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 theWARNlevel 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 theERRORlevel 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 theFATALlevel 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.
-