DefaultLogger

DefaultLogger

Default Logger class.

Constructor

new DefaultLogger(root, name)

Source:

Creates a new DefaultLogger. Should not be constructed directly, rather use Logby.getLogger.

Parameters:
Name Type Description
root

Root logger of this logger.

name

Name of the logger.

Methods

debug(…args)

Source:

Logs a debug message.

Parameters:
Name Type Attributes Description
args <repeatable>

Arguments to be logged.

error(…args)

Source:

Logs an error.

Parameters:
Name Type Attributes Description
args <repeatable>

Arguments to be logged.

info(…args)

Source:

Logs an info.

Parameters:
Name Type Attributes Description
args <repeatable>

Arguments to be logged.

isDebug()

Source:

Checks if the currently set log level includes debug logging.

Returns:

if the currently set log level includes debug logging.

isError()

Source:

Checks if the currently set log level includes error logging.

Returns:

if the currently set log level includes error logging.

isInfo()

Source:

Checks if the currently set log level includes info logging.

Returns:

if the currently set log level includes info logging.

isTrace()

Source:

Checks if the currently set log level includes trace logging.

Returns:

if the currently set log level includes trace logging.

isWarn()

Source:

Checks if the currently set log level includes warning logging.

Returns:

if the currently set log level includes warning logging.

log(level, …args)

Source:

Logs a message.

Parameters:
Name Type Attributes Description
level

Levels of the log.

args <repeatable>

Arguments to be logged.

trace(…args)

Source:

Logs a trace message.

Parameters:
Name Type Attributes Description
args <repeatable>

Arguments to be logged.

warn(…args)

Source:

Logs a warning.

Parameters:
Name Type Attributes Description
args <repeatable>

Arguments to be logged.