File: testMail.lua

package info (click to toggle)
lua-logging 1.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 240 kB
  • ctags: 50
  • sloc: makefile: 20
file content (15 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require"logging.email"

local logger = logging.email {
                               rcpt = "mail@host.com",
                               from = "mail@host.com",
                               { 
                                 subject = "[%level] logging.email test", 
                               }, -- headers
}

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

print("Mail Logging OK")