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.

Parameters:

Parameter NameData TypeDescription
msgstringThe message to be logged.
errerrorThe error 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