Ballerina API Documentation

Functions of ballerina.log package

public function printDebug(string msg)

Logs the specified value at DEBUG level.

Parameters:

Parameter NameData TypeDescription
msgstringThe message to be logged

public function printError(string msg)

Logs the specified message at ERROR level.

Parameters:

Parameter NameData TypeDescription
msgstringThe message to be logged

public function printErrorCause(string msg, error err)

Logs the specified message at ERROR level, along with an accompanying error.

Parameters:

Parameter NameData TypeDescription
msgstringThe message to be logged.
errerrorThe error struct to be logged

public function printInfo(string msg)

Logs the specified message at INFO level.

Parameters:

Parameter NameData TypeDescription
msgstringThe message to be logged.

public function printTrace(string msg)

Logs the specified message at TRACE level.

Parameters:

Parameter NameData TypeDescription
msgstringThe message to be logged

public function printWarn(string msg)

Logs the specified message at WARN level.

Parameters:

Parameter NameData TypeDescription
msgstringThe message to be logged


Menu

  • Functions
    • printDebug(string msg)
    • printError(string msg)
    • printErrorCause(string msg, error err)
    • printInfo(string msg)
    • printTrace(string msg)
    • printWarn(string msg)

Copyright 2017 Ballerina API Documentation