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

Socket appender

This appender can be used to send log requests through a socket. Socket appender relies on LuaSocket to do its job.
Upon each log request a connection is opened, the message is sent and the connection is closed.

function logging.socket(address, port [, logPattern])

Example

require"logging.socket"

local logger = logging.socket("localhost", 5000)

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


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