Software /
code /
prosody
Comparison
core/loggingmanager.lua @ 8693:6e24a69b03af
loggingmanager: Hook event for reopening log files instead of config reloaded
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Mar 2018 17:02:39 +0200 |
parent | 8555:4f0f5b49bb03 |
child | 8720:dba17a70fd22 |
comparison
equal
deleted
inserted
replaced
8692:a55574754e5f | 8693:6e24a69b03af |
---|---|
158 | 158 |
159 prosody.events.fire_event("logging-reloaded"); | 159 prosody.events.fire_event("logging-reloaded"); |
160 end | 160 end |
161 | 161 |
162 reload_logging(); | 162 reload_logging(); |
163 prosody.events.add_handler("config-reloaded", reload_logging); | 163 prosody.events.add_handler("reopen-log-files", reload_logging); |
164 | 164 |
165 --- Definition of built-in logging sinks --- | 165 --- Definition of built-in logging sinks --- |
166 | 166 |
167 -- Null sink, must enter log_sink_types *first* | 167 -- Null sink, must enter log_sink_types *first* |
168 local function log_to_nowhere() | 168 local function log_to_nowhere() |