org.apache.geronimo.kernel.log
Class GeronimoLogging

java.lang.Object
  extended by org.apache.geronimo.kernel.log.GeronimoLogging

public class GeronimoLogging
extends Object


Field Summary
static GeronimoLogging DEBUG
           
static GeronimoLogging ERROR
           
static GeronimoLogging FATAL
           
static GeronimoLogging INFO
           
static GeronimoLogging TRACE
           
static GeronimoLogging WARN
           
 
Method Summary
static GeronimoLogging getConsoleLogLevel()
           
static GeronimoLogging getDefaultLevel()
           
static GeronimoLogging getGeronimoLogging(String level)
           
static void initialize(GeronimoLogging level)
          Initializes the logging system used by Geronimo.
static boolean isBootstrapLoggingInitializationEnabled()
          Check if the Geronimo bootstrap logging initialization is enabled.
static void setConsoleLogLevel(GeronimoLogging consoleLogLevel)
           
static void setDefaultLogLevel(GeronimoLogging level)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Method Detail

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.