@Deprecated public class ServletLogChute extends Object implements org.apache.velocity.runtime.log.LogChute
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX
Deprecated.
|
static String |
RUNTIME_LOG_LEVEL_KEY
Deprecated.
|
protected javax.servlet.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(org.apache.velocity.runtime.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,
String message)
Deprecated.
Send a log message from Velocity.
|
void |
log(int level,
String message,
Throwable t)
Deprecated.
|
void |
setEnabledLevel(int level)
Deprecated.
Set the minimum level at which messages will be printed.
|
protected int |
toLevel(String level)
Deprecated.
|
public static final String RUNTIME_LOG_LEVEL_KEY
protected javax.servlet.ServletContext servletContext
public static final String PREFIX
public ServletLogChute()
public void init(org.apache.velocity.runtime.RuntimeServices rs) throws Exception
init
in interface org.apache.velocity.runtime.log.LogChute
IllegalStateException
- if the ServletContext is not available
in the application attributes under the appropriate key.Exception
protected int toLevel(String level)
public void setEnabledLevel(int level)
public int getEnabledLevel()
public boolean isLevelEnabled(int level)
isLevelEnabled
in interface org.apache.velocity.runtime.log.LogChute
public void log(int level, String message)
log
in interface org.apache.velocity.runtime.log.LogChute
Copyright © 2002–2014 Apache Software Foundation. All rights reserved.