Package org.apache.catalina.startup
Class VersionLoggerListener
- java.lang.Object
-
- org.apache.catalina.startup.VersionLoggerListener
-
- All Implemented Interfaces:
LifecycleListener
public class VersionLoggerListener extends java.lang.Object implements LifecycleListener
Logs version information on startup.This listener must only be nested within
Serverelements and should be the first listener defined.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringManagersmThe string manager for this package.
-
Constructor Summary
Constructors Constructor Description VersionLoggerListener()Constructs a new VersionLoggerListener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetLogArgs()Returns whether JVM arguments will be logged.booleangetLogEnv()Returns whether environment variables will be logged.booleangetLogProps()Returns whether system properties will be logged.voidlifecycleEvent(LifecycleEvent event)Acknowledge the occurrence of the specified event.voidsetLogArgs(boolean logArgs)Sets whether JVM arguments will be logged.voidsetLogEnv(boolean logEnv)Sets whether environment variables will be logged.voidsetLogProps(boolean logProps)Sets whether system properties will be logged.
-
-
-
Field Detail
-
sm
protected static final StringManager sm
The string manager for this package.
-
-
Method Detail
-
getLogArgs
public boolean getLogArgs()
Returns whether JVM arguments will be logged.- Returns:
trueif JVM arguments will be logged
-
setLogArgs
public void setLogArgs(boolean logArgs)
Sets whether JVM arguments will be logged.- Parameters:
logArgs- Whether to log JVM arguments
-
getLogEnv
public boolean getLogEnv()
Returns whether environment variables will be logged.- Returns:
trueif environment variables will be logged
-
setLogEnv
public void setLogEnv(boolean logEnv)
Sets whether environment variables will be logged.- Parameters:
logEnv- Whether to log environment variables
-
getLogProps
public boolean getLogProps()
Returns whether system properties will be logged.- Returns:
trueif system properties will be logged
-
setLogProps
public void setLogProps(boolean logProps)
Sets whether system properties will be logged.- Parameters:
logProps- Whether to log system properties
-
lifecycleEvent
public void lifecycleEvent(LifecycleEvent event)
Description copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
lifecycleEventin interfaceLifecycleListener- Parameters:
event- LifecycleEvent that has occurred
-
-