public class StackLoggerImpl extends Object implements StackLogger
TRACE_DEBUG, TRACE_ERROR, TRACE_EXCEPTION, TRACE_FATAL, TRACE_INFO, TRACE_MESSAGES, TRACE_NONE, TRACE_TRACE, TRACE_WARN| Constructor and Description |
|---|
StackLoggerImpl() |
| 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 sipLogLevel)
Return true/false if loging is enabled at a given level.
|
void |
logDebug(String string)
Log a message into the log file.
|
void |
logError(String string)
Log an error message.
|
void |
logError(String string,
Exception exception)
Log an error message.
|
void |
logException(Throwable throwable)
Log an exception.
|
void |
logFatalError(String string)
Log an error message.
|
void |
logInfo(String string)
Log an info message.
|
void |
logStackTrace()
log a stack trace.
|
void |
logStackTrace(int level)
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 message)
Log a warning mesasge.
|
void |
setBuildTimeStamp(String timeStamp)
Set the build time stamp.
|
static void |
setLogger(org.apache.log4j.Logger logger) |
void |
setStackProperties(Properties properties)
Stack creation properties.
|
public static void setLogger(org.apache.log4j.Logger logger)
public void disableLogging()
StackLoggerdisableLogging in interface StackLoggerpublic void enableLogging()
StackLoggerenableLogging in interface StackLoggerpublic int getLineCount()
StackLoggergetLineCount in interface StackLoggerpublic boolean isLoggingEnabled()
isLoggingEnabled in interface StackLoggerpublic boolean isLoggingEnabled(int sipLogLevel)
StackLoggerisLoggingEnabled in interface StackLoggerpublic void logDebug(String string)
StackLoggerlogDebug in interface StackLoggerstring - message to log into the log file.public void logError(String string)
StackLoggerlogError in interface StackLoggerstring - --
error message to log.public void logError(String string, Exception exception)
StackLoggerlogError in interface StackLoggerpublic void logException(Throwable throwable)
StackLoggerlogException in interface StackLoggerpublic void logFatalError(String string)
StackLoggerlogFatalError in interface StackLoggerstring - --
error message to log.public void logInfo(String string)
StackLoggerlogInfo in interface StackLoggerpublic void logStackTrace()
StackLoggerlogStackTrace in interface StackLoggerpublic void logStackTrace(int level)
StackLoggerlogStackTrace in interface StackLoggerpublic void logWarning(String message)
StackLoggerlogWarning in interface StackLoggerpublic void logTrace(String message)
StackLoggerlogTrace in interface StackLoggermessage - message to log into the log file.public void setBuildTimeStamp(String timeStamp)
StackLoggersetBuildTimeStamp in interface StackLoggerpublic void setStackProperties(Properties properties)
StackLoggersetStackProperties in interface StackLoggerpublic String getLoggerName()
StackLoggergetLoggerName in interface StackLoggerCopyright © 2014. All Rights Reserved.