org.apache.log
public final class LogKit extends Object
Deprecated: Instead of using LogKit directly use the facilities in code itself
The LogKit provides the access to static methods to manipulate the logging sub-systemMethod Summary | |
---|---|
static ContextStack | getCurrentContext()
Get the Current ContextStack.
|
static Logger | getLoggerFor(String category)
Retrieve a logger for named category.
|
static Priority | getPriorityForName(String priority)
Retrieve a Priority value for the string parameter.
|
static void | log(String message, Throwable t)
Logs an error message to error handler.
|
static void | log(String message)
Logs an error message to error handler.
|
static void | setDefaultLogTarget(LogTarget defaultLogTarget)
Sets the default LogTarget for the default logger.
|
Deprecated: Use ContextStack.getCurrentContext() instead
Get the Current ContextStack. This returns a ContextStack associated with current thread. If the thread doesn't have a ContextStack associated with it then a new ContextStack is created with the name of thread as base context.Returns: the current ContextStack
Deprecated: Use Hierarchy.getDefaultHierarchy().getLoggerFor() instead
Retrieve a logger for named category.Parameters: category the context
Returns: the Logger
Deprecated: Use Priority.getPriorityForName() instead
Retrieve a Priority value for the string parameter.Parameters: priority the priority
Returns: the descriptive string
Deprecated: Use Hierarchy.getDefaultHierarchy().log() instead
Logs an error message to error handler.Deprecated: Use Hierarchy.getDefaultHierarchy().log() instead
Logs an error message to error handler.Deprecated: Use Hierarchy.getDefaultHierarchy().setDefaultLogTarget() instead
Sets the default LogTarget for the default logger.