Log library

.html ›› .html ››
Parent Previous Next

Log library

The Log library provides functions for emmiting log messages, which can be helpful to developers. All of these functions are contained in the “Log” Lua table found in the “log.lua” unit.


Usage example:

-- First, you need to use the “log.lua” unit
require("log.lua");   

-- Now you can access the functions of the library.
Log.LIBRARY_FUNCTION(Argument1, Argument2, ...);


Where the log messages goes to?


The log messages emmited by this library are sent to:



Log library functions


function Log.e(tag, msg)
function Log.w(tag, msg)
function Log.i(tag, msg)
function Log.d(tag, msg)
function Log.v(tag, msg)


Emmit log message


Arguments:


Log severity:

Log.e

Error message

A situation that represents an unhandled error that may interrupt some operation

Log.w

Warning message

A situation that can be handled but may cause some unintended behavior


Log.i

Informational/Notice message

A normal but significant condition that may require special handling.


Log.d

Debug message

A developer debug message


Log.v

Verbose message

Algorithm steps message, very low priority messages.


Remarks:

  • Messages of this severity are not emitted in the Firecast’s log files
  • In the Firecast’s console, you need to execute the command “filter add *” to be able to see these messages.

Created with the Personal Edition of HelpNDoc: Leave the tedious WinHelp HLP to CHM conversion process behind with HelpNDoc