Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Global log level control #3

Open
fidlej opened this Issue · 0 comments

1 participant

@fidlej

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
Something went wrong with that request. Please try again.