public class Log4JLogger extends NucleusLogger
CACHE, CONNECTION, DATASTORE, DATASTORE_NATIVE, DATASTORE_PERSIST, DATASTORE_RETRIEVE, DATASTORE_SCHEMA, GENERAL, LIFECYCLE, METADATA, PERSISTENCE, QUERY, TRANSACTION, VALUEGENERATION| Constructor and Description |
|---|
Log4JLogger(String logName)
Constructor using Log4J.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object msg)
Log a debug message.
|
void |
debug(Object msg,
Throwable thr)
Log a debug message with throwable.
|
void |
error(Object msg)
Log an error message.
|
void |
error(Object msg,
Throwable thr)
Log an error message with throwable.
|
void |
fatal(Object msg)
Log an fatal message.
|
void |
fatal(Object msg,
Throwable thr)
Log a fatal message with throwable.
|
Object |
getNativeLogger()
Accessor for the native logger object.
|
void |
info(Object msg)
Log an info message.
|
void |
info(Object msg,
Throwable thr)
Log an info message with throwable.
|
boolean |
isDebugEnabled()
Accessor for whether debug logging is enabled
|
boolean |
isInfoEnabled()
Accessor for whether info logging is enabled
|
void |
warn(Object msg)
Log a warning message.
|
void |
warn(Object msg,
Throwable thr)
Log a warning message with throwable.
|
getLoggerInstancepublic Log4JLogger(String logName)
logName - Name of the logging categorypublic Object getNativeLogger()
NucleusLoggergetNativeLogger in class NucleusLoggerpublic void debug(Object msg)
debug in class NucleusLoggermsg - The messagepublic void debug(Object msg, Throwable thr)
debug in class NucleusLoggermsg - The messagethr - A throwablepublic void info(Object msg)
info in class NucleusLoggermsg - The messagepublic void info(Object msg, Throwable thr)
info in class NucleusLoggermsg - The messagethr - A throwablepublic void warn(Object msg)
warn in class NucleusLoggermsg - The messagepublic void warn(Object msg, Throwable thr)
warn in class NucleusLoggermsg - The messagethr - A throwablepublic void error(Object msg)
error in class NucleusLoggermsg - The messagepublic void error(Object msg, Throwable thr)
error in class NucleusLoggermsg - The messagethr - A throwablepublic void fatal(Object msg)
fatal in class NucleusLoggermsg - The messagepublic void fatal(Object msg, Throwable thr)
fatal in class NucleusLoggermsg - The messagethr - A throwablepublic boolean isDebugEnabled()
isDebugEnabled in class NucleusLoggerpublic boolean isInfoEnabled()
isInfoEnabled in class NucleusLoggerCopyright © 2019. All rights reserved.