Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.log.LogKit
public final class LogKit
extends java.lang.Object
Method Summary | |
static ContextStack |
|
static Logger |
|
static Priority |
|
static void |
|
static void |
|
static void |
|
public static ContextStack getCurrentContext()
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
public static Logger getLoggerFor(String category)
Deprecated. Use Hierarchy.getDefaultHierarchy().getLoggerFor() instead
Retrieve a logger for named category.
- Parameters:
category
- the context
- Returns:
- the Logger
public static Priority getPriorityForName(String priority)
Deprecated. Use Priority.getPriorityForName() instead
Retrieve a Priority value for the string parameter.
- Parameters:
priority
- the priority
- Returns:
- the descriptive string
public static void log(String message)
Deprecated. Use Hierarchy.getDefaultHierarchy().log() instead
Logs an error message to error handler.
public static void log(String message, Throwable t)
Deprecated. Use Hierarchy.getDefaultHierarchy().log() instead
Logs an error message to error handler.
public static void setDefaultLogTarget(LogTarget defaultLogTarget)
Deprecated. Use Hierarchy.getDefaultHierarchy().setDefaultLogTarget() instead
Sets the default LogTarget for the default logger.