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.i18n.logging
Class NonCatalogLogger

java.lang.Object
  extended by weblogic.i18n.logging.NonCatalogLogger

Direct Known Subclasses:
NonCatalogLogger

public class NonCatalogLogger
extends Object

This class provides application services for logging error messages to the WebLogic Server log. The name, location, and other properties of the log file are determined by the LogMBean for the server

All methods which take a Throwable argument, print the stack trace in the error log.

The NonCatalogLogger can be used as a static class variable and used across object instances of that class. NonCatalogLogger methods are thread safe for multiple object instances and for threads calling the log methods concurrently.

Logging from Clients:

This class is also intended for use by client code not running within a WebLogic Server. In that case, each client JVM creates its own log file. The logging properties of clients are configured with Java system properties: weblogic.log.<attributeInLogMBean>=<value>.

For logging internationalized messages, use <catalogName>Logger, generated using i18ngen. See the Oracle WebLogic Server Internationalization Guide for instructions.


Method Summary
 void alert(String msg)
          Log an Alert message
 void alert(String msg, Throwable t)
          Log an Alert message with a Throwable
 void critical(String msg)
          Log a Critical message
 void critical(String msg, Throwable t)
          Log a Critical message with a Throwable
 void debug(String msg)
          Log a debug message.
 void debug(String msg, Throwable t)
          Log a Debug message with a Throwable
 void emergency(String msg)
          Log an Emergency message
 void emergency(String msg, Throwable t)
          Log an Emergency message with a Throwable
 void error(String msg)
          Log a message with severity 'Error'
 void error(String msg, Throwable th)
          Log an Error message with a Throwable
 void info(String msg)
          Log an informational message.
 void info(String msg, Throwable t)
          Log an Info message with a Throwable
 void notice(String msg)
          Log a Notice message
 void notice(String msg, Throwable t)
          Log a Notice message with a Throwable
 void trace(String msg)
          Log a Trace message
 void trace(String msg, Throwable t)
          Log a Trace message with a Throwable
 void warning(String msg)
          Log a message with severity 'Warning'
 void warning(String msg, Throwable t)
          Log a Warning message with a Throwable

 

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

 

Method Detail

error

public void error(String msg)
Log a message with severity 'Error'

error

public void error(String msg,
                  Throwable th)
Log an Error message with a Throwable
Parameters:
msg -
th -

warning

public void warning(String msg)
Log a message with severity 'Warning'

warning

public void warning(String msg,
                    Throwable t)
Log a Warning message with a Throwable
Parameters:
msg -
t -

info

public void info(String msg)
Log an informational message.

info

public void info(String msg,
                 Throwable t)
Log an Info message with a Throwable
Parameters:
msg -
t -

debug

public void debug(String msg)
Log a debug message. Debug messages should be logged only on an as-needed basis. Calls to these messages should be enabled or disabled dynamically based on application properties. By default no debug messages should be logged.

debug

public void debug(String msg,
                  Throwable t)
Log a Debug message with a Throwable
Parameters:
msg -
t -

alert

public void alert(String msg)
Log an Alert message
Parameters:
msg -

alert

public void alert(String msg,
                  Throwable t)
Log an Alert message with a Throwable
Parameters:
msg -
t -

critical

public void critical(String msg)
Log a Critical message
Parameters:
msg -

critical

public void critical(String msg,
                     Throwable t)
Log a Critical message with a Throwable
Parameters:
msg -
t -

emergency

public void emergency(String msg)
Log an Emergency message
Parameters:
msg -

emergency

public void emergency(String msg,
                      Throwable t)
Log an Emergency message with a Throwable
Parameters:
msg -
t -

notice

public void notice(String msg)
Log a Notice message
Parameters:
msg -

notice

public void notice(String msg,
                   Throwable t)
Log a Notice message with a Throwable
Parameters:
msg -
t -

trace

public void trace(String msg)
Log a Trace message
Parameters:
msg -

trace

public void trace(String msg,
                  Throwable t)
Log a Trace message with a Throwable
Parameters:
msg -
t -

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