lights FAQ Forum github.com/luapower/logging
This package
logging

Standard Libraries
glue
pp
oo
events
coro
errors
lpeglabel
dollar
logging

logging

File and TCP logging with capped disk & memory usage


--[[

	File and TCP logging with capped disk & memory usage.
	Written by Cosmin Apreutesei. Public domain.

	logging.log(severity, module, event, fmt, ...)
	logging.note(module, event, fmt, ...)
	logging.dbg(module, event, fmt, ...)
	logging.warnif(module, event, condition, fmt, ...)
	logging.logerror(module, event, fmt, ...)

	logging.args(...) -> ...
	logging.printargs(...) -> ...

	logging.env <- 'dev' | 'prod', etc.
	logging.deploy <- app deployment name
	logging.filter <- {severity->true}
	logging.censor <- f(severity, module, event, msg)

	logging:tofile(logfile, max_disk_size)
	logging:toserver(host, port, queue_size, timeout)

]]

See the source code for more info.


Package:logging
Pkg type:Lua+ffi
Version: 3561821
Last commit:
Author: Cosmin Apreutesei
License: Public Domain

Requires: glue  luajit  pp  time 

Required by: dollar 


Top