Commit Graph

72 Commits (master)

Author SHA1 Message Date
Kim Alvefur 4bf9c26a26 core.loggingmanager: Bump expected util.pposix version 1 year ago
Kim Alvefur d47a7bb3bd core: Prefix module imports with prosody namespace 3 years ago
Kim Alvefur 70598062e3 core.loggingmanager: Add FIXME about supporting console logging to stderr 4 years ago
Kim Alvefur 31eb61f22a core.loggingmanager: Disable pretty printing when not connected to a tty 5 years ago
Kim Alvefur bfb4514d0f core.loggingmanager: Pretty-print logged XML snippets in console 5 years ago
Kim Alvefur 417846da58 core.loggingmanager: Support passing log messages trough a filter 5 years ago
Kim Alvefur 4c39528a44 loggingmanager: Make timestamps enabled by default in file sink (fixes #1004) 8 years ago
Kim Alvefur a5f43007f1 core.loggingmanager: Remove now unused locals [luacheck] 8 years ago
Kim Alvefur 35717a1e41 loggingmanager, mod_posix: Import util.format correctly (fixes #985) 8 years ago
Waqas Hussain f4aebb575e loggingmanager: Slight cleanup and optimization of file sink 8 years ago
Waqas Hussain 00cb31f022 loggingmanager, mod_posix: Replace the old inconsistent log formatting with the new util.format 8 years ago
Kim Alvefur 1d903e3442 loggingmanager: Remove luacheck annotations for global log functions that are now set in util.startup 8 years ago
Kim Alvefur b594f3b843 util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies 8 years ago
Kim Alvefur eacc7b0dd3 util.startup: Initialize prosody.log / _G.log here instead of in loggingmanager to reduce dependencies 8 years ago
Kim Alvefur 6684c9901a loggingmanager: Hook event for reopening log files instead of config reloaded 8 years ago
Kim Alvefur 43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Kim Alvefur e45c5961ac core: Allow select core modules to mutate some globals (needs luacheck 1.19) 9 years ago
Kim Alvefur e349fb9c87 loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck] 10 years ago
Matthew Wild 952ba43fea loggingmanager: Import select() to fix global access 10 years ago
Kim Alvefur 1ca9c3d520 loggingmanager: Stringify all arguments to format so we can finally see the *real* error messages 10 years ago
Kim Alvefur 47f497ad93 loggingmanager: Remove Windows hack, buffer_mode should fix this 10 years ago
Kim Alvefur 883547a4db loggingmanager: Write out timestamps in same write() call as everything else 10 years ago
Kim Alvefur c9f2829f6e loggingmanager: Make initial value for width of log name configurable 10 years ago
Kim Alvefur c32e03898c loggingmanager: Move logic for adaptive column width into file sink, append tab if disabled (fixes separation between name and level in plain file sinks) 10 years ago
Kim Alvefur 68d6b5e89e loggingmanager: Refactor the console log sink to re-use the stdout sink which in turn uses the file sink (tailcalls!) 10 years ago
Kim Alvefur fe4731209e loggingmanager: Write out color code, log level and reset code in one call 10 years ago
Kim Alvefur fc2a0d90fc loggingmanager: Don't reset default timestamp that is not changed by any other code 10 years ago
Matthew Wild de372ae245 loggingmanager: Call setvbuf on output files, defaulting to line-buffered, instead of manually calling flush(). Adds 'buffer_mode' option to sink configuration for stdout, console and file sinks. 10 years ago
Matthew Wild 16f55dac02 loggingmanager: Add prosody.log (intended to be used instead of _G.log now) 10 years ago
Matthew Wild bb08d35ca7 loggingmanager: Rename function arguments to avoid name conflict [luacheck] (core/ is now luacheck-clean!) 11 years ago
Matthew Wild b13254c233 loggingmanager: Improve code structure (removes empty if branch) 11 years ago
Kim Alvefur 27265c20e2 core.*: Remove use of module() function 11 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Kim Alvefur 1acfdf5914 core.*: Complete removal of all traces of the "core" section and section-related code. 13 years ago
Kim Alvefur c141ffdbf6 core.loggingmanager: Don't create file log rules from [level] = "*sink" style config 13 years ago
Matthew Wild 2ab785fd9f loggingmanager, mod_posix: Move syslog to core, fixes #541 (in a way) 7 years ago
Matthew Wild de72422137 Backed out changeset 3eea63a68e0f 7 years ago
Matthew Wild 3c50aa4902 util.queue: Update :items() to consistently use private data directly 7 years ago
Matthew Wild a9b4512005 loggingmanager: Remove unused variables 14 years ago
Matthew Wild fe16dde20b loggingmanager, util.logger: Remove name sinks and the ability to filter logs by source name (lots of code, hardly used if at all, and possibly broken) 14 years ago
Matthew Wild a6418c6df2 loggingmanager: Remove unused 'critical' level 14 years ago
Waqas Hussain 2cbe4b74e3 core.loggingmanager: Updated to use termcolours.getstyle instead of termcolours.getstring for console logging. 15 years ago
Waqas Hussain ec51542c8f core.loggingmanager: Updated to use termcolours.getstyle instead of termcolours.getstring for console logging. 15 years ago
Matthew Wild 31faa98f14 loggingmanager: Allow specifying a sink type in per-level logging config (thanks ruskie) 15 years ago
Matthew Wild 29747bfa1e loggingmanager: Allow specifying a sink type in per-level logging config (thanks ruskie) 15 years ago
Matthew Wild 0f0601ab2d loggingmanager: Iterate over logging config rules using ipairs rather than pairs 15 years ago
Matthew Wild 807eb44ee6 loggingmanager: Iterate over logging config rules using ipairs rather than pairs 15 years ago
Waqas Hussain db0a3bec91 loggingmanager: Fix reading configuration of timestamps for console output. 15 years ago
Waqas Hussain 6abd0110a4 loggingmanager: Re-read 'debug' option on reload. 15 years ago
Matthew Wild ddde44eb04 loggingmanager: Remove event hook that never fired anyway, and held logfiles open - leave the GC to close them now. 15 years ago