public interface StackLogger extends LogLevels
TRACE_DEBUG, TRACE_ERROR, TRACE_EXCEPTION, TRACE_FATAL, TRACE_INFO, TRACE_MESSAGES, TRACE_NONE, TRACE_TRACE, TRACE_WARN
Modifier and Type | Method and Description |
---|---|
void |
disableLogging()
Disable logging altogether.
|
void |
enableLogging()
Enable logging (globally).
|
int |
getLineCount()
Get the line count in the log stream.
|
String |
getLoggerName()
The category for the logger.
|
boolean |
isLoggingEnabled() |
boolean |
isLoggingEnabled(int logLevel)
Return true/false if loging is enabled at a given level.
|
void |
logDebug(String message)
Log a message into the log file.
|
void |
logDebug(String message,
Exception ex)
Log a message into the log file.
|
void |
logError(String message)
Log an error message.
|
void |
logError(String message,
Exception ex)
Log an error message.
|
void |
logException(Throwable ex)
Log an exception.
|
void |
logFatalError(String message)
Log an error message.
|
void |
logInfo(String string)
Log an info message.
|
void |
logStackTrace()
log a stack trace.
|
void |
logStackTrace(int traceLevel)
Log a stack trace if the current logging level exceeds
given trace level.
|
void |
logTrace(String message)
Log a message into the log file.
|
void |
logWarning(String string)
Log a warning mesasge.
|
void |
setBuildTimeStamp(String buildTimeStamp)
Set the build time stamp.
|
void |
setStackProperties(Properties stackProperties)
Stack creation properties.
|
void logStackTrace()
void logStackTrace(int traceLevel)
traceLevel
- int getLineCount()
void logException(Throwable ex)
ex
- void logDebug(String message)
message
- message to log into the log file.void logDebug(String message, Exception ex)
message
- message to log into the log file.ex
- void logTrace(String message)
message
- message to log into the log file.void logFatalError(String message)
message
- --
error message to log.void logError(String message)
message
- --
error message to log.boolean isLoggingEnabled()
boolean isLoggingEnabled(int logLevel)
logLevel
- void logError(String message, Exception ex)
message
- ex
- void logWarning(String string)
string
- void logInfo(String string)
string
- void disableLogging()
void enableLogging()
void setBuildTimeStamp(String buildTimeStamp)
void setStackProperties(Properties stackProperties)
stackProperties
- String getLoggerName()
Copyright © 2018. All Rights Reserved.