mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-14 08:50:00 -05:00
15 lines
348 B
Lua
15 lines
348 B
Lua
|
syslog = {}
|
||
|
syslog.emergency = 0
|
||
|
syslog.alert = 1
|
||
|
syslog.critical = 2
|
||
|
syslog.error = 3
|
||
|
syslog.warning = 4
|
||
|
syslog.notice = 5
|
||
|
syslog.info = 6
|
||
|
syslog.debug = 7
|
||
|
|
||
|
setmetatable(syslog,{__call = function(_,msg, level, service)
|
||
|
level, service = level or syslog.info, service or process.info().path
|
||
|
computer.pushSignal("syslog",msg, level, service)
|
||
|
end})
|