public class AvalonLogChute extends Object implements LogChute
Modifier and Type | Field and Description |
---|---|
static String |
AVALON_LOGGER |
static String |
AVALON_LOGGER_FORMAT |
static String |
AVALON_LOGGER_LEVEL |
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX
Constructor and Description |
---|
AvalonLogChute() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Also do a shutdown if the object is destroy()'d.
|
void |
init(RuntimeServices rs)
Initializes this LogChute.
|
void |
init(String file)
Deprecated.
This method should not be used. It is here only to provide
backwards compatibility for the deprecated AvalonLogSystem
class, in case anyone used it and this method directly.
|
boolean |
isLevelEnabled(int level)
Checks to see whether the specified level is enabled.
|
void |
log(int level,
String message)
logs messages
|
void |
log(int level,
String message,
Throwable t)
logs messages and error
|
void |
shutdown()
Close all destinations
|
public static final String AVALON_LOGGER
public static final String AVALON_LOGGER_FORMAT
public static final String AVALON_LOGGER_LEVEL
public void init(RuntimeServices rs) throws Exception
LogChute
init
in interface LogChute
Exception
LogChute.init(org.apache.velocity.runtime.RuntimeServices)
public void init(String file) throws Exception
file
- Exception
public void log(int level, String message)
public boolean isLevelEnabled(int level)
isLevelEnabled
in interface LogChute
level
- protected void finalize() throws Throwable
public void shutdown()
Copyright © 2000–2021. All rights reserved.