Class NullLogger
java.lang.Object
org.datanucleus.util.NucleusLogger
org.datanucleus.util.NullLogger
Null implementation of a NucleusLogger.
Simply does nothing :-)
-
Field Summary
Fields inherited from class NucleusLogger
CACHE, CONNECTION, DATASTORE, DATASTORE_NATIVE, DATASTORE_PERSIST, DATASTORE_RETRIEVE, DATASTORE_SCHEMA, GENERAL, METADATA, PERSISTENCE, QUERY, TRANSACTION, VALUEGENERATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a debug message.voidLog a debug message with throwable.voidLog an error message.voidLog an error message with throwable.voidLog a fatal message.voidLog a fatal message with throwable.Accessor for the native logger object.voidLog an info message.voidLog an info message with throwable.booleanAccessor for whether debug logging is enabledbooleanAccessor for whether info logging is enabledvoidLog a warning message.voidLog a warning message with throwable.Methods inherited from class NucleusLogger
getLoggerInstance
-
Constructor Details
-
NullLogger
-
-
Method Details
-
getNativeLogger
Description copied from class:NucleusLoggerAccessor for the native logger object.- Specified by:
getNativeLoggerin classNucleusLogger- Returns:
- The native logger object
-
debug
Description copied from class:NucleusLoggerLog a debug message.- Specified by:
debugin classNucleusLogger- Parameters:
msg- The message
-
debug
Description copied from class:NucleusLoggerLog a debug message with throwable.- Specified by:
debugin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-
error
Description copied from class:NucleusLoggerLog an error message.- Specified by:
errorin classNucleusLogger- Parameters:
msg- The message
-
error
Description copied from class:NucleusLoggerLog an error message with throwable.- Specified by:
errorin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-
fatal
Description copied from class:NucleusLoggerLog a fatal message.- Specified by:
fatalin classNucleusLogger- Parameters:
msg- The message
-
fatal
Description copied from class:NucleusLoggerLog a fatal message with throwable.- Specified by:
fatalin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-
info
Description copied from class:NucleusLoggerLog an info message.- Specified by:
infoin classNucleusLogger- Parameters:
msg- The message
-
info
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
Description copied from class:NucleusLoggerLog a warning message.- Specified by:
warnin classNucleusLogger- Parameters:
msg- The message
-
warn
Description copied from class:NucleusLoggerLog a warning message with throwable.- Specified by:
warnin classNucleusLogger- Parameters:
msg- The messagethr- A throwable
-