Functions of ballerina.log package
public function printDebug(string msg)
Logs the specified value at debug level.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
msg | string | The message to be logged. |
public function printError(string msg)
Logs the specified message at error level.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
msg | string | The message to be logged. |
public function printErrorCause(string msg, error err)
Logs the specified message at error level.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
msg | string | The message to be logged. |
err | error | The error to be logged. |
public function printInfo(string msg)
Logs the specified message at info level.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
msg | string | The message to be logged. |
public function printTrace(string msg)
Logs the specified message at trace level.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
msg | string | The message to be logged. |
public function printWarn(string msg)
Logs the specified message at warn level.
Parameters:
Parameter Name | Data Type | Description |
---|---|---|
msg | string | The message to be logged. |