Package org.apache.openjpa.lib.log
Class NoneLogFactory.NoneLog
- java.lang.Object
-
- org.apache.openjpa.lib.log.NoneLogFactory.NoneLog
-
- All Implemented Interfaces:
Log
- Enclosing class:
- NoneLogFactory
public static class NoneLogFactory.NoneLog extends Object implements Log
No-op log.
-
-
Constructor Summary
Constructors Constructor Description NoneLog()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(Object o)Write out a log message at theLog.ERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.voiderror(Object o, Throwable t)Write out a log message at theLog.ERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidfatal(Object o)Write out a log message at theLog.FATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidfatal(Object o, Throwable t)Write out a log message at theLog.FATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.static NoneLogFactory.NoneLoggetInstance()voidinfo(Object o)Write out a log message at theLog.INFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidinfo(Object o, Throwable t)Write out a log message at theLog.INFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.booleanisErrorEnabled()Returns if theLog.ERRORlog level is enabled.booleanisFatalEnabled()Returns if theLog.FATALlog level is enabled.booleanisInfoEnabled()Returns if theLog.INFOlog level is enabled.booleanisTraceEnabled()Returns if theLog.TRACElog level is enabled.booleanisWarnEnabled()Returns if theLog.WARNlog level is enabled.voidtrace(Object o)Write out a log message at theLog.TRACElevel with the stringification ofoas the body of the message.voidtrace(Object o, Throwable t)Write out a log message at theLog.TRACElevel with the stringification ofoas the body of the message, also outputtingtto the log.voidwarn(Object o)Write out a log message at theLog.WARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.voidwarn(Object o, Throwable t)Write out a log message at theLog.WARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
-
-
Method Detail
-
getInstance
public static NoneLogFactory.NoneLog getInstance()
-
isErrorEnabled
public final boolean isErrorEnabled()
Description copied from interface:LogReturns if theLog.ERRORlog level is enabled.- Specified by:
isErrorEnabledin interfaceLog
-
isFatalEnabled
public final boolean isFatalEnabled()
Description copied from interface:LogReturns if theLog.FATALlog level is enabled.- Specified by:
isFatalEnabledin interfaceLog
-
isInfoEnabled
public final boolean isInfoEnabled()
Description copied from interface:LogReturns if theLog.INFOlog level is enabled.- Specified by:
isInfoEnabledin interfaceLog
-
isTraceEnabled
public final boolean isTraceEnabled()
Description copied from interface:LogReturns if theLog.TRACElog level is enabled.- Specified by:
isTraceEnabledin interfaceLog
-
isWarnEnabled
public final boolean isWarnEnabled()
Description copied from interface:LogReturns if theLog.WARNlog level is enabled.- Specified by:
isWarnEnabledin interfaceLog
-
trace
public final void trace(Object o)
Description copied from interface:LogWrite out a log message at theLog.TRACElevel with the stringification ofoas the body of the message.
-
trace
public final void trace(Object o, Throwable t)
Description copied from interface:LogWrite out a log message at theLog.TRACElevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
info
public final void info(Object o)
Description copied from interface:LogWrite out a log message at theLog.INFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
info
public final void info(Object o, Throwable t)
Description copied from interface:LogWrite out a log message at theLog.INFOlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
warn
public final void warn(Object o)
Description copied from interface:LogWrite out a log message at theLog.WARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
warn
public final void warn(Object o, Throwable t)
Description copied from interface:LogWrite out a log message at theLog.WARNlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
error
public final void error(Object o)
Description copied from interface:LogWrite out a log message at theLog.ERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
error
public final void error(Object o, Throwable t)
Description copied from interface:LogWrite out a log message at theLog.ERRORlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
fatal
public final void fatal(Object o)
Description copied from interface:LogWrite out a log message at theLog.FATALlevel with the stringification ofoas the body of the message, also outputtingtto the log.
-
-