Functions

printDebug
I

Prints debug logs.

printError
I

Prints error logs.

printInfo
I

Prints info logs.

printWarn
I

Prints warn logs.

printDebug

function printDebug(string msg, error? 'error, *KeyValues keyValues)
Isolated Function

Prints debug logs.

1log:printDebug("debug message", id = 845315)

Parameters

  • msg string
  • The message to be logged

  • 'error error? (default ())
  • The error struct to be logged

  • keyValues *KeyValues
  • The key-value pairs to be logged

printError

function printError(string msg, error? 'error, *KeyValues keyValues)
Isolated Function

Prints error logs.

1error e = error("error occurred");
2log:printError("error log with cause", 'error = e, id = 845315);

Parameters

  • msg string
  • The message to be logged

  • 'error error? (default ())
  • The error struct to be logged

  • keyValues *KeyValues
  • The key-value pairs to be logged

printInfo

function printInfo(string msg, error? 'error, *KeyValues keyValues)
Isolated Function

Prints info logs.

1log:printInfo("info message", id = 845315)

Parameters

  • msg string
  • The message to be logged

  • 'error error? (default ())
  • The error struct to be logged

  • keyValues *KeyValues
  • The key-value pairs to be logged

printWarn

function printWarn(string msg, error? 'error, *KeyValues keyValues)
Isolated Function

Prints warn logs.

1log:printWarn("warn message", id = 845315)

Parameters

  • msg string
  • The message to be logged

  • 'error error? (default ())
  • The error struct to be logged

  • keyValues *KeyValues
  • The key-value pairs to be logged