Jumpi v1.2.0

org.jumpi.spi.component
Interface Logger

All Superinterfaces:
Component, Configurable, Manageable
All Known Implementing Classes:
SystemLoggerImpl

public interface Logger
extends Component

Logs Info, Warning or Error Messages on behalf of Components. A Logger implementation may allow log filtering on a Component level and configuration of the logging level to use. Specific implementations may log to files, System.out/err or any other mechanism.


Method Summary
 void error(Component component, java.lang.String message)
          Log an Error level message for the Component.
 void error(Component component, java.lang.String message, java.lang.Throwable t)
          Log an Error level message for the Component.
 void info(Component component, java.lang.String message)
          Log an Info level message for the Component.
 void info(Component component, java.lang.String message, java.lang.Throwable t)
          Log an Info level message for the Component.
 boolean isLoggingError(Component component)
          Whether Error level messages are logged for the Component.
 boolean isLoggingInfo(Component component)
          Whether Info level messages are logged for the Component.
 boolean isLoggingWarning(Component component)
          Whether Warn level messages are logged for the Component.
 void warn(Component component, java.lang.String message)
          Log a Warn level message for the Component.
 void warn(Component component, java.lang.String message, java.lang.Throwable t)
          Log a Warn level message for the Component.
 
Methods inherited from interface org.jumpi.spi.Configurable
configure, getName
 
Methods inherited from interface org.jumpi.spi.Manageable
manage
 

Method Detail

isLoggingInfo

public boolean isLoggingInfo(Component component)
Whether Info level messages are logged for the Component.

Parameters:
component - the Component issueing the log message.
Returns:
true if Info level messages are logged for the Component.

info

public void info(Component component,
                 java.lang.String message)
Log an Info level message for the Component.

Parameters:
component - the Component issueing the log message.
message - the message text to log.

info

public void info(Component component,
                 java.lang.String message,
                 java.lang.Throwable t)
Log an Info level message for the Component.

Parameters:
component - the Component issueing the log message.
message - the message text to log.
t - a related Throwable exception.

isLoggingWarning

public boolean isLoggingWarning(Component component)
Whether Warn level messages are logged for the Component.

Parameters:
component - the Component issueing the log message.
Returns:
true if Warn level messages are logged for the Component.

warn

public void warn(Component component,
                 java.lang.String message)
Log a Warn level message for the Component.

Parameters:
component - the Component issueing the log message.
message - the message text to log.

warn

public void warn(Component component,
                 java.lang.String message,
                 java.lang.Throwable t)
Log a Warn level message for the Component.

Parameters:
component - the Component issueing the log message.
message - the message text to log.
t - a related Throwable exception.

isLoggingError

public boolean isLoggingError(Component component)
Whether Error level messages are logged for the Component.

Parameters:
component - the Component issueing the log message.
Returns:
true if Error level messages are logged for the Component.

error

public void error(Component component,
                  java.lang.String message)
Log an Error level message for the Component.

Parameters:
component - the Component issueing the log message.
message - the message text to log.

error

public void error(Component component,
                  java.lang.String message,
                  java.lang.Throwable t)
Log an Error level message for the Component.

Parameters:
component - the Component issueing the log message.
message - the message text to log.
t - a related Throwable exception.

Jumpi v1.2.0

Copyright © 2003, Peter Jonathan Klauser.