| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
function FATAL(text) |
| 11 |
api.eventlog(eventlog_level_fatal, __function__, text) |
| 12 |
end |
| 13 |
|
| 14 |
function ERROR(text) |
| 15 |
api.eventlog(eventlog_level_error, __function__, text) |
| 16 |
end |
| 17 |
|
| 18 |
function WARN(text) |
| 19 |
api.eventlog(eventlog_level_warn, __function__, text) |
| 20 |
end |
| 21 |
|
| 22 |
function INFO(text) |
| 23 |
api.eventlog(eventlog_level_info, __function__, text) |
| 24 |
end |
| 25 |
|
| 26 |
function DEBUG(text) |
| 27 |
if (type(text) == "table") then |
| 28 |
text = table.dump(text) |
| 29 |
end |
| 30 |
api.eventlog(eventlog_level_debug, __function__, text) |
| 31 |
end |
| 32 |
|
| 33 |
function TRACE(text) |
| 34 |
api.eventlog(eventlog_level_trace, __function__, text) |
| 35 |
end |
| 36 |
|
| 37 |
function GUI(text) |
| 38 |
api.eventlog(eventlog_level_gui, __function__, text) |
| 39 |
end |
| 40 |
|
| 41 |
|