mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 10:38:05 +11:00
added man pages for syslog, for #9
This commit is contained in:
parent
e614eefa90
commit
9c2c74b7fd
@ -110,6 +110,7 @@
|
|||||||
["libsyslog"] = {
|
["libsyslog"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/syslog/OpenOS/usr/lib/syslog.lua"] = "/lib",
|
["master/syslog/OpenOS/usr/lib/syslog.lua"] = "/lib",
|
||||||
|
["master/syslog/OpenOS/usr/man/syslog"] = "/man",
|
||||||
},
|
},
|
||||||
name = "libsyslog",
|
name = "libsyslog",
|
||||||
description = "Library for unified logging",
|
description = "Library for unified logging",
|
||||||
@ -119,6 +120,7 @@
|
|||||||
["syslogd"] = {
|
["syslogd"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/syslog/OpenOS/etc/rc.d/syslogd.lua"] = "//etc/rc.d",
|
["master/syslog/OpenOS/etc/rc.d/syslogd.lua"] = "//etc/rc.d",
|
||||||
|
["master/syslog/OpenOS/usr/man/syslogd"] = "/man",
|
||||||
},
|
},
|
||||||
name = "syslogd",
|
name = "syslogd",
|
||||||
description = "System logging daemon with network capabilities",
|
description = "System logging daemon with network capabilities",
|
||||||
|
19
syslog/OpenOS/usr/man/syslog
Normal file
19
syslog/OpenOS/usr/man/syslog
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# syslog Library for OpenOS
|
||||||
|
|
||||||
|
The syslog library only provides one function, so the library can be called. In addition, the library provides a number of pre-configured event levels:
|
||||||
|
|
||||||
|
- syslog.emergency
|
||||||
|
- syslog.alert
|
||||||
|
- syslog.critical
|
||||||
|
- syslog.error
|
||||||
|
- syslog.warning
|
||||||
|
- syslog.notice
|
||||||
|
- syslog.info
|
||||||
|
- syslog.debug
|
||||||
|
|
||||||
|
An example using syslog as both a function and a table:
|
||||||
|
|
||||||
|
```lua
|
||||||
|
local syslog = require "syslog"
|
||||||
|
syslog("message", syslog.emergency, "service name")
|
||||||
|
```
|
24
syslog/OpenOS/usr/man/syslogd
Normal file
24
syslog/OpenOS/usr/man/syslogd
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# syslog Daemon for OpenOS
|
||||||
|
|
||||||
|
The syslog daemon lives in */etc/rc.d/syslogd.lua*, and as such is managed as an rc program:
|
||||||
|
|
||||||
|
```
|
||||||
|
rc syslogd enable
|
||||||
|
rc syslogd start
|
||||||
|
rc syslogd reload
|
||||||
|
```
|
||||||
|
|
||||||
|
In addition, the daemon keeps a configuration file in */etc/syslogd.cfg*. This is stored as a Lua table and may be edited in whatever way you see fit. It has the following fields and default values:
|
||||||
|
|
||||||
|
|Field | Default value |
|
||||||
|
| --- | --- |
|
||||||
|
|port | 514 |
|
||||||
|
|relay | false |
|
||||||
|
|relayhost | "" |
|
||||||
|
|receive | false |
|
||||||
|
|write | true |
|
||||||
|
|destination | "/dev/null" |
|
||||||
|
|minlevel | 6 |
|
||||||
|
|beeplevel | -1 |
|
||||||
|
|displevel | 2 |
|
||||||
|
|filter | {} |
|
Loading…
Reference in New Issue
Block a user