Skip to content
Nameless edited this page Apr 13, 2019 · 6 revisions

To get the logger:

local luvit_reql = require('luvit-reql')
local logger = luvit_reql.logger()

Methods

setFile(name)

Sets the output file

harderr(fmt, ...)

Hard errors, logging data in red and ending the process

err(fmt, ...)

Soft errors, logging data in red and not ending the process

warn(fmt, ...)

Soft warns, logging data in orange and not ending the process

info(fmt, ...)

Spits out data in blue

debug(fmt, ...)

Spits out data in yellow

assert(truthy, fmt, ...)

Works like the assert() function in vanilla lua, except uses the harderr method