Package org.datanucleus.util
Class NullLogger
- java.lang.Object
-
- org.datanucleus.util.NucleusLogger
-
- org.datanucleus.util.NullLogger
-
public class NullLogger extends NucleusLogger
Null implementation of a NucleusLogger. Simply does nothing :-)
-
-
Field Summary
-
Fields inherited from class org.datanucleus.util.NucleusLogger
CACHE, CONNECTION, DATASTORE, DATASTORE_NATIVE, DATASTORE_PERSIST, DATASTORE_RETRIEVE, DATASTORE_SCHEMA, GENERAL, METADATA, PERSISTENCE, QUERY, TRANSACTION, VALUEGENERATION
-
-
Constructor Summary
Constructors Constructor Description NullLogger(String logName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(Object msg)Log a debug message.voiddebug(Object msg, Throwable thr)Log a debug message with throwable.voiderror(Object msg)Log an error message.voiderror(Object msg, Throwable thr)Log an error message with throwable.voidfatal(Object msg)Log a fatal message.voidfatal(Object msg, Throwable thr)Log a fatal message with throwable.ObjectgetNativeLogger()Accessor for the native logger object.voidinfo(Object msg)Log an info message.voidinfo(Object msg, Throwable thr)Log an info message with throwable.booleanisDebugEnabled()Accessor for whether debug logging is enabledbooleanisInfoEnabled()Accessor for whether info logging is enabledvoidwarn(Object msg)Log a warning message.voidwarn(Object msg, Throwable thr)Log a warning message with throwable.-
Methods inherited from class org.datanucleus.util.NucleusLogger
getLoggerInstance
-
-
-
-
Constructor Detail
-
NullLogger
public NullLogger(String logName)
-
-
Method Detail
-
getNativeLogger
public Object getNativeLogger()
Description copied from class:NucleusLoggerAccessor for the native logger object.- Specified by:
getNativeLoggerin classNucleusLogger- Returns:
- The native logger object
-
debug
public void debug(Object msg)
Description copied from class:NucleusLoggerLog a debug message.- Specified by:
debugin classNucleusLogger- Parameters:
msg- The message
-
debug
public void debug(Object msg, Throwable thr)
Description copied from class:NucleusLoggerLog a debug message with throwable.- Specified by:
debugin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-
error
public void error(Object msg)
Description copied from class:NucleusLoggerLog an error message.- Specified by:
errorin classNucleusLogger- Parameters:
msg- The message
-
error
public void error(Object msg, Throwable thr)
Description copied from class:NucleusLoggerLog an error message with throwable.- Specified by:
errorin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-
fatal
public void fatal(Object msg)
Description copied from class:NucleusLoggerLog a fatal message.- Specified by:
fatalin classNucleusLogger- Parameters:
msg- The message
-
fatal
public void fatal(Object msg, Throwable thr)
Description copied from class:NucleusLoggerLog a fatal message with throwable.- Specified by:
fatalin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-
info
public void info(Object msg)
Description copied from class:NucleusLoggerLog an info message.- Specified by:
infoin classNucleusLogger- Parameters:
msg- The message
-
info
public void info(Object msg, Throwable thr)
Description copied from class:NucleusLoggerLog an info message with throwable.- Specified by:
infoin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-
isDebugEnabled
public boolean isDebugEnabled()
Description copied from class:NucleusLoggerAccessor for whether debug logging is enabled- Specified by:
isDebugEnabledin classNucleusLogger- Returns:
- Whether it is enabled
-
isInfoEnabled
public boolean isInfoEnabled()
Description copied from class:NucleusLoggerAccessor for whether info logging is enabled- Specified by:
isInfoEnabledin classNucleusLogger- Returns:
- Whether it is enabled
-
warn
public void warn(Object msg)
Description copied from class:NucleusLoggerLog a warning message.- Specified by:
warnin classNucleusLogger- Parameters:
msg- The message
-
warn
public void warn(Object msg, Throwable thr)
Description copied from class:NucleusLoggerLog a warning message with throwable.- Specified by:
warnin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-
-