Logger

public interface Logger

Logger is a common interface of a logger.

Author:Hugo Y. K. Lam

Methods

debug

public void debug(Object msg)

Logs a debug message.

Parameters:
  • msg – the message to be logged.

debug

public void debug(Object msg, Throwable throwable)

Logs a debug message.

Parameters:
  • msg – the message to be logged.
  • throwable – the associated exception.

error

public void error(Object msg)

Logs an error message.

Parameters:
  • msg – the message to be logged.

error

public void error(Object msg, Throwable throwable)

Logs an error message.

Parameters:
  • msg – the message to be logged.
  • throwable – the associated exception.

fatal

public void fatal(Object msg)

Logs a fatal error message.

Parameters:
  • msg – the message to be logged.

fatal

public void fatal(Object msg, Throwable throwable)

Logs a fatal error message.

Parameters:
  • msg – the message to be logged.
  • throwable – the associated exception.

info

public void info(Object msg)

Logs an informative message.

Parameters:
  • msg – the message to be logged.

info

public void info(Object msg, Throwable throwable)

Logs an informative message.

Parameters:
  • msg – the message to be logged.
  • throwable – the associated exception.

warn

public void warn(Object msg)

Logs a warning error message.

Parameters:
  • msg – the message to be logged.

warn

public void warn(Object msg, Throwable throwable)

Logs a warning error message.

Parameters:
  • msg – the message to be logged.
  • throwable – the associated exception.