File: testSocket.lua

package info (click to toggle)
lua-logging 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 512 kB
  • sloc: makefile: 16; sh: 3
file content (10 lines) | stat: -rw-r--r-- 204 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
local log_sock = require"logging.socket"

local logger = log_sock("localhost", "5000")

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

print("Socket Logging OK")