Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.logging.log4j
Class Log4jLoggingHelper

java.lang.Object
  extended by weblogic.logging.log4j.Log4jLoggingHelper


public class Log4jLoggingHelper
extends Object

This class provides access to the Log4j Logger when the Server is configured to use a Log4j implementation.


Method Summary
static Logger getLog4jDomainLogger()
          Gets the Log4j Logger object used by the Domain Logging.
static Logger getLog4jServerLogger()
          Gets the Log4j Logger object used by the Server Logging.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

getLog4jServerLogger

public static Logger getLog4jServerLogger()
                                   throws LoggerNotAvailableException
Gets the Log4j Logger object used by the Server Logging.
Returns:
The Log4j Logger being used for Server Logging.
Throws:
LoggerNotAvailableException - If Log4j is not configured to be the current implementation for Server Logging.

getLog4jDomainLogger

public static Logger getLog4jDomainLogger()
                                   throws LoggerNotAvailableException
Gets the Log4j Logger object used by the Domain Logging.
Returns:
The Log4j Logger being used for Domain Logging.
Throws:
LoggerNotAvailableException - If Log4j is not configured to be the current implementation for Domain Logging.

Skip navigation links

Copyright 1996, 2015, 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
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09