Class VersionLoggerListener
java.lang.Object
org.apache.catalina.startup.VersionLoggerListener
- All Implemented Interfaces:
LifecycleListener
Logs version information on startup.
This listener must only be nested within Server elements and should be the first listener defined.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringManagerThe string manager for this package. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether JVM arguments will be logged.booleanReturns whether environment variables will be logged.booleanReturns 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 Details
-
sm
The string manager for this package.
-
-
Constructor Details
-
VersionLoggerListener
public VersionLoggerListener()Constructs a new VersionLoggerListener.
-
-
Method Details
-
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
Description copied from interface:LifecycleListenerAcknowledge the occurrence of the specified event.- Specified by:
lifecycleEventin interfaceLifecycleListener- Parameters:
event- LifecycleEvent that has occurred
-