LuaLogging
A simple API to use logging features in Lua. Portuguese version.

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!")

 

 

 

 

 

 

 

XHTML 1.0 válido!