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

Misc
ace.js
amiri
base64
dejavuserif
fireflysung
fixedsys
font_db
fontawesome
ionicons
logging
material-icons
noto-emoji
opensans
queue
sha1

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.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: afcccbd
Last commit:
Author: Cosmin Apreutesei
License: Public Domain

Requires: glue  luajit  pp  time 

Required by: dollar 


Top