Mercurial > prosody-hg
comparison core/loggingmanager.lua @ 7136:6c3a33e54399
loggingmanager: Make initial value for width of log name configurable
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 04 Feb 2016 17:51:39 +0100 |
| parents | 0b614b7333f1 |
| children | 4a5619a87b44 |
comparison
equal
deleted
inserted
replaced
| 7135:0b614b7333f1 | 7136:6c3a33e54399 |
|---|---|
| 217 | 217 |
| 218 local function log_to_stdout(sink_config) | 218 local function log_to_stdout(sink_config) |
| 219 if not sink_config.timestamps then | 219 if not sink_config.timestamps then |
| 220 sink_config.timestamps = false; | 220 sink_config.timestamps = false; |
| 221 end | 221 end |
| 222 sink_config.source_width = 20; | 222 if sink_config.source_width == nil then |
| 223 sink_config.source_width = 20; | |
| 224 end | |
| 223 return log_to_file(sink_config, stdout); | 225 return log_to_file(sink_config, stdout); |
| 224 end | 226 end |
| 225 log_sink_types.stdout = log_to_stdout; | 227 log_sink_types.stdout = log_to_stdout; |
| 226 | 228 |
| 227 local do_pretty_printing = true; | 229 local do_pretty_printing = true; |
