Logging module for lua
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Sebastian c5d35a9040 set fixed width to level character class in meta format string 1 year ago
LICENSE Initial commit 1 year ago
README.md Update README.md 1 year ago
log-1.0-1.rockspec Update log-1.0-1.rockspec 1 year ago
log.lua set fixed width to level character class in meta format string 1 year ago
screenshot.png Add files via upload 1 year ago

README.md

lua-log

This logging module is inspired by rxi.

How to install?

luarocks install log

See LuaRocks for versions.

How to use?

-- Hello

log = require 'log'
log.output_file = 'log.txt'
log.usecolor = true -- Default

log.trace('Test')
log.info('Test')

Levels

  • Trace (log.trace)
  • Debug (log.debug)
  • Info (log.info)
  • Warn (log.warn)
  • Error (log.error)
  • Fatal (log.fatal)

Parameters

  • log.usecolor
  • log.output_file