GlyEngine 0.3.8
Create games and apps with lua
Loading...
Searching...
No Matches
Log

Functions

local function fatal (...)
 
local function error (...)
 
local function warn (...)
 
local function info (...)
 
local function debug (..)
 
local function trace (..)
 
local function level (n)
 
local function init (printers)
 

Detailed Description

local levels = { none = 0, fatal = 1, error = 2, warn = 3, info = 4, debug = 5, trace = 6}
local function debug(..)
local function warn(...)
local function trace(..)
local function info(...)
local function fatal(...)
local function error(...)

Function Documentation

◆ debug()

local function debug ( .. )

◆ error()

local function error ( ...)

◆ fatal()

local function fatal ( ...)

◆ info()

local function info ( ...)

◆ init()

local function init ( printers )

@decorator

Restarts log system by redirecting messages to new destinations.

Example
std.log.init({
fatal = function(message) print('[fatal]', message) end,
error = function(message) print('[error]', message) end,
warn = function(message) print('[warn]', message) end,
info = function(message) print('[info]', message) end,
debug = function(message) print('[debug]', message) end,
trace = function(message) print('[trace]', message) end,
})
local function print(pos_x, pos_y, text)
std.text.print

◆ level()

local function level ( n )

@decorator

Examples

Adjusts the level of omission of log messages.

std.log.level('debug')
std.log.level(5)

◆ trace()

local function trace ( .. )

◆ warn()

local function warn ( ...)