org.apache.geronimo.kernel.log
Class GeronimoLogging
java.lang.Object
org.apache.geronimo.kernel.log.GeronimoLogging
public class GeronimoLogging
- extends Object
TRACE
public static final GeronimoLogging TRACE
DEBUG
public static final GeronimoLogging DEBUG
INFO
public static final GeronimoLogging INFO
WARN
public static final GeronimoLogging WARN
ERROR
public static final GeronimoLogging ERROR
FATAL
public static final GeronimoLogging FATAL
initialize
public static void initialize(GeronimoLogging level)
- Initializes the logging system used by Geronimo. This MUST be called in
in the main class used to start the geronimo server. This method forces
commons logging to use GeronimoLogFactory, starts the initial commons-logging
logging system, and forces mx4j to use commons logging.
setDefaultLogLevel
public static void setDefaultLogLevel(GeronimoLogging level)
getDefaultLevel
public static GeronimoLogging getDefaultLevel()
getConsoleLogLevel
public static GeronimoLogging getConsoleLogLevel()
setConsoleLogLevel
public static void setConsoleLogLevel(GeronimoLogging consoleLogLevel)
getGeronimoLogging
public static GeronimoLogging getGeronimoLogging(String level)
toString
public String toString()
- Overrides:
toString
in class Object
isBootstrapLoggingInitializationEnabled
public static boolean isBootstrapLoggingInitializationEnabled()
- Check if the Geronimo bootstrap logging initialization is enabled.
Checks the system property geronimo.bootstrap.logging.enabled
if not set, or set to "true" then bootstrap logging initialization is enabled.
- Returns:
- True of bootstrap logging initialization is enabled.
Copyright © 2006 Apache Software Foundation. All Rights Reserved.