public class

InternalLogger

extends Object
implements ILogger
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.logging.InternalLogger

Class Overview

An internal (debug-mode only) logger. Production builds should not use such loggers.

Summary

Public Constructors
InternalLogger(String name)
Public Methods
void catching(Throwable t)
Log an exception's stack trace.
void catching(Throwable t, String format, Object[] params)
Log an exception's stack trace, prefixed by an optional message.
void catching(Throwable t, String message)
Log an exception's stack trace, prefixed by an optional message.
void catchingSilent(Throwable t)
Log an exception at the debug level.
void debug(String format, Object[] params)
Log a debug message.
void error(String format, Object[] params)
Log an error message.
void fine(String format, Object[] params)
Alias for #trace(String, Object...) warn().
int getEnabledLevel()
Retrieve the cut-off level for that logger.
String getName()
void i(String format, Object[] params)
Reserved for internal logging.
void info(String format, Object[] params)
Log an information message.
void log(int level, boolean raw, String format, Object... params)
In non-debug mode, this method does nothing.
void setEnabledLevel(int level)
Set the cut-off level for a logger.
void severe(String format, Object[] params)
Alias for #error(String, Object...) error().
void status(String format, Object[] params)
Log a transient status message (STATUS).
void trace(String format, Object[] params)
Log a trace message.
void warn(String format, Object[] params)
Log a warning message.
void warning(String format, Object[] params)
Alias for #warn(String, Object...) warn().
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.util.logging.ILogger

Public Constructors

public InternalLogger (String name)

Public Methods

public void catching (Throwable t)

Log an exception's stack trace.

Parameters
t the throwable

public void catching (Throwable t, String format, Object[] params)

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

public 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 void catchingSilent (Throwable t)

Log an exception at the debug level.

Parameters
t the throwable

public void debug (String format, Object[] params)

Log a debug message.

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

public void error (String format, Object[] params)

Log an error message.

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

public void fine (String format, Object[] params)

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

public int getEnabledLevel ()

Retrieve the cut-off level for that logger.

Returns

public String getName ()

public void i (String format, Object[] params)

Reserved for internal logging. In Release builds, calling this method does nothing.

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

public void info (String format, Object[] params)

Log an information message.

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

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

In non-debug mode, this method does nothing.

public 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 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 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 void trace (String format, Object[] params)

Log a trace message.

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

public void warn (String format, Object[] params)

Log a warning message.

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

public void warning (String format, Object[] params)

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