LuaLogging logo
LuaLogging
A simple API to use logging features in Lua
home · manual · example · console · email · file · socket · sql

File appender

The file appender can be used to write log messages to a file. It uses Lua I/O routines to do its job.

function logging.file(filename, [datePattern], [logPattern])

Example

require"logging.file"

local logger = logging.file("test%s.log", "%Y-%m-%d")

logger:info("logging.file test")
logger:debug("debugging...")
logger:error("error!")


$Id: index.html,v 1.1 2004/11/16 16:33:10 tuler Exp $