Mercurial > prosody-hg
comparison core/loggingmanager.lua @ 4427:ae71ae5ddcfc
loggingmanager: Remove unused 'critical' level
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 22 Nov 2011 17:56:52 +0000 |
| parents | ef94984c44a0 |
| children | b046cafc81a8 |
comparison
equal
deleted
inserted
replaced
| 4426:ee65aa40ef60 | 4427:ae71ae5ddcfc |
|---|---|
| 39 local logging_config; | 39 local logging_config; |
| 40 | 40 |
| 41 local apply_sink_rules; | 41 local apply_sink_rules; |
| 42 local log_sink_types = setmetatable({}, { __newindex = function (t, k, v) rawset(t, k, v); apply_sink_rules(k); end; }); | 42 local log_sink_types = setmetatable({}, { __newindex = function (t, k, v) rawset(t, k, v); apply_sink_rules(k); end; }); |
| 43 local get_levels; | 43 local get_levels; |
| 44 local logging_levels = { "debug", "info", "warn", "error", "critical" } | 44 local logging_levels = { "debug", "info", "warn", "error" } |
| 45 | 45 |
| 46 -- Put a rule into action. Requires that the sink type has already been registered. | 46 -- Put a rule into action. Requires that the sink type has already been registered. |
| 47 -- This function is called automatically when a new sink type is added [see apply_sink_rules()] | 47 -- This function is called automatically when a new sink type is added [see apply_sink_rules()] |
| 48 local function add_rule(sink_config) | 48 local function add_rule(sink_config) |
| 49 local sink_maker = log_sink_types[sink_config.to]; | 49 local sink_maker = log_sink_types[sink_config.to]; |
