1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-23 10:38:05 +11:00

cleanup and such

This commit is contained in:
Izaya 2018-08-08 09:15:03 +10:00
parent ef6e7076b8
commit bf5c56c231

View File

@ -1,16 +1,16 @@
# syslog for OpenOS # syslog for OpenOS
This package contains a syslog library, and a syslog daemon, for OpenOS. These are separated, as the daemon is optional. This package contains a syslog library, and a syslog daemon, for OpenOS. These are separated, as the daemon is optional and can be replaced at will.
## Installation ## Installation
### Library Library:
``` ```
oppm install libsyslog oppm install libsyslog
``` ```
### Daemon Daemon:
``` ```
oppm install syslogd oppm install syslogd
@ -33,7 +33,7 @@ The syslog library only provides one function, so the library can be called. In
An example using syslog as both a function and a table: An example using syslog as both a function and a table:
``` ```lua
local syslog = require "syslog" local syslog = require "syslog"
syslog("message", syslog.emergency, "service name") syslog("message", syslog.emergency, "service name")
``` ```
@ -50,16 +50,18 @@ 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: 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:
- port: 514 |Field | Default value |
- relay: false | --- | --- |
- relayhost: "" |port | 514 |
- receive: false |relay | false |
- write: true |relayhost | "" |
- destination: "/dev/null" |receive | false |
- minlevel: 6 |write | true |
- beeplevel: -1 |destination | "/dev/null" |
- displevel: 2 |minlevel | 6 |
- filter: {} |beeplevel | -1 |
|displevel | 2 |
|filter | {} |
## Technical details ## Technical details