aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src/prosody/util/logger.d.tl
blob: db29adfdcb21064c96b33f884ce2db1f825763db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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