org.apache.velocity.tools.view
@Deprecated public class ServletLogChute extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
enabled
Deprecated.
|
static java.lang.String |
PREFIX
Deprecated.
|
static java.lang.String |
RUNTIME_LOG_LEVEL_KEY
Deprecated.
|
protected ServletContext |
servletContext
Deprecated.
|
Constructor and Description |
---|
ServletLogChute()
Deprecated.
Construct a simple logger for a servlet environment.
|
Modifier and Type | Method and Description |
---|---|
int |
getEnabledLevel()
Deprecated.
Returns the current minimum level at which messages will be printed.
|
void |
init(RuntimeServices rs)
Deprecated.
init()
|
boolean |
isLevelEnabled(int level)
Deprecated.
This will return true if the specified level
is equal to or higher than the level this
LogChute is enabled for.
|
void |
log(int level,
java.lang.String message)
Deprecated.
Send a log message from Velocity.
|
void |
log(int level,
java.lang.String message,
java.lang.Throwable t)
Deprecated.
|
void |
setEnabledLevel(int level)
Deprecated.
Set the minimum level at which messages will be printed.
|
protected int |
toLevel(java.lang.String level)
Deprecated.
|
public static final java.lang.String RUNTIME_LOG_LEVEL_KEY
private int enabled
protected ServletContext servletContext
public static final java.lang.String PREFIX
public ServletLogChute()
public void init(RuntimeServices rs) throws java.lang.Exception
java.lang.IllegalStateException
- if the ServletContext is not available
in the application attributes under the appropriate key.java.lang.Exception
protected int toLevel(java.lang.String level)
public void setEnabledLevel(int level)
public int getEnabledLevel()
public boolean isLevelEnabled(int level)
public void log(int level, java.lang.String message)
public void log(int level, java.lang.String message, java.lang.Throwable t)
Copyright (c) 2003-2007 Apache Software Foundation