Debian Codegraph @

lua/extend/eventlog.lua

raw symbols SCIP
1 --[[
2 Copyright (C) 2014 HarpyWar ([email protected])
3
4 This file is a part of the PvPGN Project http://pvpgn.pro
5 Licensed under the same terms as Lua itself.
6 ]]--
7
8 -- Log event wrappers
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