org.jomc.logging
Interface Logger


@Generated(value="org.jomc.tools.SourceFileProcessor 1.2",
           comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2")
public interface Logger

Logs events for a specific component.

Identifier:
org.jomc.logging.Logger
Multiplicity:
One
Scope:
None

Version:
1.0
Author:
Christian Schulte 1.0
See Also:
getObject(Logger.class), getObject(Logger.class, "implementation name"), org.jomc.ObjectManagerFactory

Method Summary
 void debug(String message)
          Logs a debug message.
 void debug(String message, Throwable t)
          Logs a debug message and exception.
 void debug(Throwable t)
          Logs a debug exception.
 void error(String message)
          Logs an error message.
 void error(String message, Throwable t)
          Logs an error message and exception.
 void error(Throwable t)
          Logs an error exception.
 void fatal(String message)
          Logs a fatal message.
 void fatal(String message, Throwable t)
          Logs a fatal message and exception.
 void fatal(Throwable t)
          Logs a fatal exception.
 void info(String message)
          Logs an info message.
 void info(String message, Throwable t)
          Logs an info message and exception.
 void info(Throwable t)
          Logs an info exception.
 boolean isDebugEnabled()
          Gets a flag indicating logging debug messages is enabled.
 boolean isErrorEnabled()
          Gets a flag indicating logging error messages is enabled.
 boolean isFatalEnabled()
          Gets a flag indicating logging fatal messages is enabled.
 boolean isInfoEnabled()
          Gets a flag indicating logging info messages is enabled.
 boolean isTraceEnabled()
          Gets a flag indicating logging trace messages is enabled.
 boolean isWarnEnabled()
          Gets a flag indicating logging warning messages is enabled.
 void trace(String message)
          Logs a trace message.
 void trace(String message, Throwable t)
          Logs a trace message and exception.
 void trace(Throwable t)
          Logs a trace exception.
 void warn(String message)
          Logs a warning message.
 void warn(String message, Throwable t)
          Logs a warning message and exception.
 void warn(Throwable t)
          Logs a warning exception.
 

Method Detail

isDebugEnabled

boolean isDebugEnabled()
Gets a flag indicating logging debug messages is enabled.

Returns:
true, if logging debug messages is enabled; false, if logging debug messages is disabled.

debug

void debug(String message)
Logs a debug message.

Parameters:
message - The message to log.

debug

void debug(Throwable t)
Logs a debug exception.

Parameters:
t - The exception to log.

debug

void debug(String message,
           Throwable t)
Logs a debug message and exception.

Parameters:
message - The message to log.
t - The exception to log.

isErrorEnabled

boolean isErrorEnabled()
Gets a flag indicating logging error messages is enabled.

Returns:
true, if logging error messages is enabled; false, if logging error messages is disabled.

error

void error(String message)
Logs an error message.

Parameters:
message - The message to log.

error

void error(Throwable t)
Logs an error exception.

Parameters:
t - The exception to log.

error

void error(String message,
           Throwable t)
Logs an error message and exception.

Parameters:
message - The message to log.
t - The exception to log.

isFatalEnabled

boolean isFatalEnabled()
Gets a flag indicating logging fatal messages is enabled.

Returns:
true, if logging fatal messages is enabled; false, if logging fatal messages is disabled.

fatal

void fatal(String message)
Logs a fatal message.

Parameters:
message - The message to log.

fatal

void fatal(Throwable t)
Logs a fatal exception.

Parameters:
t - The exception to log.

fatal

void fatal(String message,
           Throwable t)
Logs a fatal message and exception.

Parameters:
message - The message to log.
t - The exception to log.

isInfoEnabled

boolean isInfoEnabled()
Gets a flag indicating logging info messages is enabled.

Returns:
true, if logging info messages is enabled; false, if logging info messages is disabled.

info

void info(String message)
Logs an info message.

Parameters:
message - The message to log.

info

void info(Throwable t)
Logs an info exception.

Parameters:
t - The exception to log.

info

void info(String message,
          Throwable t)
Logs an info message and exception.

Parameters:
message - The message to log.
t - The exception to log.

isTraceEnabled

boolean isTraceEnabled()
Gets a flag indicating logging trace messages is enabled.

Returns:
true, if logging trace messages is enabled; false, if logging trace messages is disabled.

trace

void trace(String message)
Logs a trace message.

Parameters:
message - The message to log.

trace

void trace(Throwable t)
Logs a trace exception.

Parameters:
t - The exception to log.

trace

void trace(String message,
           Throwable t)
Logs a trace message and exception.

Parameters:
message - The message to log.
t - The exception to log.

isWarnEnabled

boolean isWarnEnabled()
Gets a flag indicating logging warning messages is enabled.

Returns:
true, if logging warning messages is enabled; false, if logging warning messages is disabled.

warn

void warn(String message)
Logs a warning message.

Parameters:
message - The message to log.

warn

void warn(Throwable t)
Logs a warning exception.

Parameters:
t - The exception to log.

warn

void warn(String message,
          Throwable t)
Logs a warning message and exception.

Parameters:
message - The message to log.
t - The exception to log.


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.