weblogic.i18n.logging.MessageLoggerRegistryListener
NonCatalogLogger
public class NonCatalogLogger
extends java.lang.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.
Modifier and Type | Method | Description |
---|---|---|
void |
alert(java.lang.String msg) |
Log an Alert message
|
void |
alert(java.lang.String msg,
java.lang.Throwable t) |
Log an Alert message with a Throwable
|
void |
critical(java.lang.String msg) |
Log a Critical message
|
void |
critical(java.lang.String msg,
java.lang.Throwable t) |
Log a Critical message with a Throwable
|
void |
debug(java.lang.String msg) |
Log a debug message.
|
void |
debug(java.lang.String msg,
java.lang.Throwable t) |
Log a Debug message with a Throwable
|
void |
emergency(java.lang.String msg) |
Log an Emergency message
|
void |
emergency(java.lang.String msg,
java.lang.Throwable t) |
Log an Emergency message with a Throwable
|
void |
error(java.lang.String msg) |
Log a message with severity 'Error'
|
void |
error(java.lang.String msg,
java.lang.Throwable th) |
Log an Error message with a Throwable
|
void |
info(java.lang.String msg) |
Log an informational message.
|
void |
info(java.lang.String msg,
java.lang.Throwable t) |
Log an Info message with a Throwable
|
void |
notice(java.lang.String msg) |
Log a Notice message
|
void |
notice(java.lang.String msg,
java.lang.Throwable t) |
Log a Notice message with a Throwable
|
void |
trace(java.lang.String msg) |
Log a Trace message
|
void |
trace(java.lang.String msg,
java.lang.Throwable t) |
Log a Trace message with a Throwable
|
void |
warning(java.lang.String msg) |
Log a message with severity 'Warning'
|
void |
warning(java.lang.String msg,
java.lang.Throwable t) |
Log a Warning message with a Throwable
|
public void error(java.lang.String msg)
public void error(java.lang.String msg, java.lang.Throwable th)
msg
- th
- public void warning(java.lang.String msg)
public void warning(java.lang.String msg, java.lang.Throwable t)
msg
- t
- public void info(java.lang.String msg)
public void info(java.lang.String msg, java.lang.Throwable t)
msg
- t
- public void debug(java.lang.String msg)
public void debug(java.lang.String msg, java.lang.Throwable t)
msg
- t
- public void alert(java.lang.String msg)
msg
- public void alert(java.lang.String msg, java.lang.Throwable t)
msg
- t
- public void critical(java.lang.String msg)
msg
- public void critical(java.lang.String msg, java.lang.Throwable t)
msg
- t
- public void emergency(java.lang.String msg)
msg
- public void emergency(java.lang.String msg, java.lang.Throwable t)
msg
- t
- public void notice(java.lang.String msg)
msg
- public void notice(java.lang.String msg, java.lang.Throwable t)
msg
- t
- public void trace(java.lang.String msg)
msg
- public void trace(java.lang.String msg, java.lang.Throwable t)
msg
- t
-