Skip to content
Bui edited this page Aug 19, 2015 · 1 revision

Table of Contents

Example Logging Object

 channel = {
 	["log"] = true,
 	["destination"] = system_log_console_sql_file,
 	["format"] = "[%e (%e)] - %msg",
 	["buffer_size"] = 10,
 	["file"] = "logs/%orig/%YY%MM%DD.log",
 };

Properties

log

Required: Yes

Type: boolean

Notes: Indicates whether or not logging should occur.

destination

Required: Yes

Type: string

Notes: A logger.lua constants that indicates where the logging should go.

format

Required: Yes

Type: string

Notes: Describes the format of the output of each log entry. Supports Lua time replacements and Lua format logging replacements.

buffer_size

Required: No

Type: uint32

Notes: Used to determine how frequently a logger should dump the messages it has to the destination. Does not apply to the console.

file

Required: No

Type: string

Notes: Describes the format of the logging file output. Supports Lua time replacements and Lua format logging replacements.

time_format

Required: No

Type: string

Notes: Describes the time format that %t will expand to. If not specified, log_time_format will be used. Supports Lua time replacements.

Clone this wiki locally