Functions - log

printDebug

Logs the specified value at DEBUG level.

printError

Logs the specified message at ERROR level.

printInfo

Logs the specified message at INFO level.

printTrace

Logs the specified message at TRACE level.

printWarn

Logs the specified message at WARN level.

printDebug

Logs the specified value at DEBUG level.

Parameters

  • msg string | function() returns (string)
  • The message to be logged

printError

Logs the specified message at ERROR level.

Parameters

  • msg string | function() returns (string)
  • The message to be logged

  • err error (default ())
  • The error struct to be logged

printInfo

Logs the specified message at INFO level.

Parameters

  • msg string | function() returns (string)
  • The message to be logged

printTrace

Logs the specified message at TRACE level.

Parameters

  • msg string | function() returns (string)
  • The message to be logged

printWarn

Logs the specified message at WARN level.

Parameters

  • msg string | function() returns (string)
  • The message to be logged