LuaLogging
A simple API to use logging features in Lua

Console appender

Console is the simplest appender. It just writes the log messages to io.stdout.

function logging.console([logPattern])
  • logPattern:
    A pattern can be specified to control how the message is written.
    The default value is "%date %level %message\n".

Examples

require"logging.console"
local logger = logging.console()
logger:info("logging.console test")
logger:debug("debugging...")
logger:error("error!")

 

 

 

 

 

 

 

Valid XHTML 1.0!

$Id: console.html,v 1.10 2007/10/30 19:57:59 carregal Exp $