Commit Graph

53 Commits (47c821cf549c8ea4645190a8f4bb18b7a2eaee2b)

Author SHA1 Message Date
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
Kim Alvefur 27265c20e2 core.*: Remove use of module() function 11 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
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 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
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
Waqas Hussain 3327f39741 loggingmanager: Don't use non-standard format specifier to format the timestamp. 16 years ago
Matthew Wild 2294aed6ce loggingmanager: Trailing whitespace 16 years ago
Waqas Hussain b50d8bac6f loggingmanager: Explicitly flush log messages if the __FLUSH_LOG environment variable is defined (workaround for MSVCRT buffering piped output). 16 years ago
Matthew Wild d4d1aeb52c loggingmanager: Whitespace fix 16 years ago
Matthew Wild ceb93e38fe core.loggingmanager: Enable timestamps by default for file log sinks 17 years ago
Matthew Wild e45610ce6e Add copyright header to those files missing one 17 years ago
Matthew Wild 7d12a19107 loggingmanager: Log timestamps when using default file logging 17 years ago
Matthew Wild fcb0996a5f loggingmanager: Enable debug level for default file logging when 'debug' mode is enabled in the config 17 years ago
Matthew Wild 7f04c5117e loggingmanager: File log sinks react to reopen-log-files event 17 years ago
Matthew Wild 690c501c98 loggingmanager: Support for specifying a single sink with *sinkname (*syslog should now work) 17 years ago