Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06

weblogic.logging
Class LoggingHelper

java.lang.Object
  extended by weblogic.logging.LoggingHelper

public final class LoggingHelper
extends Object

This class provides utility methods to use the WebLogic Logging. Provides access to the JDK 1.4 Logger that WebLogic Logging uses.


Constructor Summary
LoggingHelper()
           
 
Method Summary
static Logger getClientLogger()
          Gets the Logger object used for client side logging.
static Logger getDomainLogger()
          Gets the logger used for logging to the domain level log.
static Logger getServerLogger()
          Gets the Logger object used for server side logging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingHelper

public LoggingHelper()
Method Detail

getServerLogger

public static Logger getServerLogger()
Gets the Logger object used for server side logging.

Returns:
The Logger used by catalog as well as non catalog based logging when running on the Server otherwise a null reference.

getClientLogger

public static Logger getClientLogger()
Gets the Logger object used for client side logging.

Returns:
The Logger used by catalog as well as non catalog based logging on the client side or null when running on the server.

getDomainLogger

public static Logger getDomainLogger()
                              throws LoggerNotAvailableException
Gets the logger used for logging to the domain level log. This method returns a valid Logger object when invoked in the JVM running the Admin Server for the domain.

Returns:
The Logger used for domain logging or null if this method is called on a managed server process.
Throws:
LoggerNotAvailableException - When this method is invoked in a process that is not running the admin server.

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06