Commit Graph

63 Commits (bc3d454dd6f46292f08f4f724203de22a85800ca)

Author SHA1 Message Date
Kim Alvefur 95346f2e84 loggingmanager: Remove luacheck annotations for global log functions that are now set in util.startup 8 years ago
Kim Alvefur b0be3682af util.startup: Set up event hooks for reloading logging here instead of in loggingmanager to simplify startup dependencies 8 years ago
Kim Alvefur d723c0752e util.startup: Initialize prosody.log / _G.log here instead of in loggingmanager to reduce dependencies 8 years ago
Kim Alvefur f7db87ef3c loggingmanager: Hook event for reopening log files instead of config reloaded 8 years ago
Kim Alvefur 146acdbd33 vairious: Add annotation when an empty environment is set [luacheck] 8 years ago
Kim Alvefur 7160daef79 loggingmanager: Make timestamps enabled by default in file sink (fixes #1004) 8 years ago
Kim Alvefur 437e9ef7fa core.loggingmanager: Remove now unused locals [luacheck] 8 years ago
Kim Alvefur f125342f41 loggingmanager, mod_posix: Import util.format correctly (fixes #985) 8 years ago
Waqas Hussain 0867e29552 loggingmanager: Slight cleanup and optimization of file sink 8 years ago
Waqas Hussain 79acb207db loggingmanager, mod_posix: Replace the old inconsistent log formatting with the new util.format 8 years ago
Kim Alvefur 91d2b2518f core: Allow select core modules to mutate some globals (needs luacheck 1.19) 9 years ago
Kim Alvefur cecd6ca31d loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck] 10 years ago
Matthew Wild 63b4f27dfb loggingmanager: Import select() to fix global access 10 years ago
Kim Alvefur 0f0dfed4fe loggingmanager: Stringify all arguments to format so we can finally see the *real* error messages 10 years ago
Kim Alvefur eaf29780bd loggingmanager: Remove Windows hack, buffer_mode should fix this 10 years ago
Kim Alvefur 2a4e1baafa loggingmanager: Write out timestamps in same write() call as everything else 10 years ago
Kim Alvefur a1defac028 loggingmanager: Make initial value for width of log name configurable 10 years ago
Kim Alvefur f19ba79431 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 4021eb4c93 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 2078539767 loggingmanager: Write out color code, log level and reset code in one call 10 years ago
Kim Alvefur 40ce08301d loggingmanager: Don't reset default timestamp that is not changed by any other code 10 years ago
Matthew Wild a63d0d3c7f 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 c0d89c8810 loggingmanager: Add prosody.log (intended to be used instead of _G.log now) 10 years ago
Matthew Wild 7953495327 loggingmanager: Rename function arguments to avoid name conflict [luacheck] (core/ is now luacheck-clean!) 11 years ago
Matthew Wild f91c34da5e loggingmanager: Improve code structure (removes empty if branch) 11 years ago
Kim Alvefur 075278ff98 core.*: Remove use of module() function 11 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Kim Alvefur 75e786c1f0 core.*: Complete removal of all traces of the "core" section and section-related code. 13 years ago
Kim Alvefur 39af0e5f37 core.loggingmanager: Don't create file log rules from [level] = "*sink" style config 13 years ago
Matthew Wild 882a6b50f2 loggingmanager: Remove unused variables 14 years ago
Matthew Wild 7f64044ee8 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 c2409b3604 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
Waqas Hussain b7e51a203d Monster whitespace commit (beware the whitespace monster). 15 years ago
Matthew Wild a60d832a39 core.loggingmanager: Logging config simplification - allow [level] = filename and *sink to appear in the config table 15 years ago
Matthew Wild e0c2d8a9b3 loggingmanager: Remove (redundant!) dependency on eventmanager 16 years ago
Matthew Wild b389ea00fc loggingmanager: Add reload_logging() method, which gets called on any config reload, to reset util.logger and remove and re-add all sink types to perform a full reload of the logging system without a restart. 16 years ago
Waqas Hussain 63338056fd loggingmanager: Enable debug level for default console logging when 'debug' mode is enabled in the config. 16 years ago
Waqas Hussain 6568eebd4b loggingmanager: Enable debug level for default console logging when 'debug' mode is enabled in the config. 16 years ago
Matthew Wild 4763db4b42 loggingmanager: Fix syntax error :) 16 years ago
Matthew Wild e0b8ae73c0 loggingmanager: Observe 'debug' config setting for console logging too 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago