public interface

ILogger

com.pnfsoftware.jeb.util.logging.ILogger
Known Indirect Subclasses

Class Overview

Definition of a logger and logging levels.

See Also

Summary

Public Methods
abstract void catching(Throwable t)
Log an exception's stack trace.
abstract void catching(Throwable t, String format, Object... params)
Log an exception's stack trace, prefixed by an optional message.
abstract void catching(Throwable t, String message)
Log an exception's stack trace, prefixed by an optional message.
abstract void catchingSilent(Throwable t)
Log an exception at the debug level.
abstract void debug(String format, Object... params)
Log a debug message.
abstract void error(String format, Object... params)
Log an error message.
abstract void fine(String format, Object... params)
Alias for #trace(String, Object...) warn().
abstract int getEnabledLevel()
Retrieve the cut-off level for that logger.
abstract String getName()
abstract void i(String format, Object... params)
Reserved for internal logging.
abstract void info(String format, Object... params)
Log an information message.
abstract void log(int level, boolean raw, String format, Object... params)
Log a string message.
abstract void setEnabledLevel(int level)
Set the cut-off level for a logger.
abstract void severe(String format, Object... params)
Alias for #error(String, Object...) error().
abstract void status(String format, Object... params)
Log a transient status message (STATUS).
abstract void trace(String format, Object... params)
Log a trace message.
abstract void warn(String format, Object... params)
Log a warning message.
abstract void warning(String format, Object... params)
Alias for #warn(String, Object...) warn().

Public Methods

public abstract void catching (Throwable t)

Log an exception's stack trace.

Parameters
t the throwable

public abstract void catching (Throwable t, String format, Object... params)

Log an exception's stack trace, prefixed by an optional message.

public abstract void catching (Throwable t, String message)

Log an exception's stack trace, prefixed by an optional message.

Parameters
message optional message prefixing stack trace

public abstract void catchingSilent (Throwable t)

Log an exception at the debug level.

Parameters
t the throwable

public abstract void debug (String format, Object... params)

Log a debug message.

Parameters
format format string if parameters are provided, else standard string
params parameters

public abstract void error (String format, Object... params)

Log an error message.

Parameters
format format string if parameters are provided, else standard string
params parameters

public abstract void fine (String format, Object... params)

Alias for #trace(String, Object...) warn(). Log a trace message.

public abstract int getEnabledLevel ()

Retrieve the cut-off level for that logger.

Returns

public abstract String getName ()

public abstract void i (String format, Object... params)

Reserved for internal logging. Third-party code should not use this methods.

Parameters
format format string if parameters are provided, else standard string
params parameters

public abstract void info (String format, Object... params)

Log an information message.

Parameters
format format string if parameters are provided, else standard string
params parameters

public abstract void log (int level, boolean raw, String format, Object... params)

Log a string message.

public abstract void setEnabledLevel (int level)

Set the cut-off level for a logger.

Parameters
level the cut-off level: all logging calls with a level equal or above to the cut-off will be displayed

public abstract void severe (String format, Object... params)

Alias for #error(String, Object...) error(). Log an error message.

Parameters
format format string if parameters are provided, else standard string
params parameters

public abstract void status (String format, Object... params)

Log a transient status message (STATUS). Status messages are not directed to the regular output destinations; instead, they are directed to the status sinks. Only the newest message is stored in the sink.

public abstract void trace (String format, Object... params)

Log a trace message.

Parameters
format format string if parameters are provided, else standard string
params parameters

public abstract void warn (String format, Object... params)

Log a warning message.

Parameters
format format string if parameters are provided, else standard string
params parameters

public abstract void warning (String format, Object... params)

Alias for #warn(String, Object...) warn(). Log a warning message.