Global log level control #3

fidlej opened this Issue Jan 30, 2013 · 0 comments

1 participant


Is there a recommended way to set the log level globally?
For example, I want to control the verbosity of all lua modules.

A proposal:
Can the logroll module serve as a logger?
It would log to io.stderr.

Example usage:

local logroll = require 'logroll'
logroll.level = logroll.DEBUG
logroll.debug("hello %s", "world")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment