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.
|
getLoggerInstance
public Log4JLogger(String logName)
logName
- Name of the logging categorypublic Object getNativeLogger()
NucleusLogger
getNativeLogger
in class NucleusLogger
public void debug(Object msg)
debug
in class NucleusLogger
msg
- The messagepublic void debug(Object msg, Throwable thr)
debug
in class NucleusLogger
msg
- The messagethr
- A throwablepublic void info(Object msg)
info
in class NucleusLogger
msg
- The messagepublic void info(Object msg, Throwable thr)
info
in class NucleusLogger
msg
- The messagethr
- A throwablepublic void warn(Object msg)
warn
in class NucleusLogger
msg
- The messagepublic void warn(Object msg, Throwable thr)
warn
in class NucleusLogger
msg
- The messagethr
- A throwablepublic void error(Object msg)
error
in class NucleusLogger
msg
- The messagepublic void error(Object msg, Throwable thr)
error
in class NucleusLogger
msg
- The messagethr
- A throwablepublic void fatal(Object msg)
fatal
in class NucleusLogger
msg
- The messagepublic void fatal(Object msg, Throwable thr)
fatal
in class NucleusLogger
msg
- The messagethr
- A throwablepublic boolean isDebugEnabled()
isDebugEnabled
in class NucleusLogger
public boolean isInfoEnabled()
isInfoEnabled
in class NucleusLogger
Copyright © 2019. All rights reserved.