mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.logger: Add Teal interface description
This commit is contained in:
parent
6e1de3134c
commit
90dd7f6943
1 changed files with 18 additions and 0 deletions
18
teal-src/util/logger.d.tl
Normal file
18
teal-src/util/logger.d.tl
Normal file
|
@ -0,0 +1,18 @@
|
|||
local record util
|
||||
enum loglevel
|
||||
"debug"
|
||||
"info"
|
||||
"warn"
|
||||
"error"
|
||||
end
|
||||
type logger = function ( loglevel, string, ...:any )
|
||||
type sink = function ( string, loglevel, string, ...:any )
|
||||
type simple_sink = function ( string, loglevel, string )
|
||||
init : function ( string ) : logger
|
||||
make_logger : function ( string, loglevel ) : function ( string, ...:any )
|
||||
reset : function ()
|
||||
add_level_sink : function ( loglevel, sink )
|
||||
add_simple_sink : function ( simple_sink, { loglevel } )
|
||||
end
|
||||
|
||||
return util
|
Loading…
Add table
Add a link
Reference in a new issue