aboutsummaryrefslogtreecommitdiffstats
path: root/core/loggingmanager.lua
Commit message (Collapse)AuthorAgeFilesLines
* core.loggingmanager: Disable pretty printing when not connected to a ttyKim Alvefur2021-07-041-1/+1
| | | | Things can behave unexpectedly when fed ANSI escape codes.
* core.loggingmanager: Pretty-print logged XML snippets in consoleKim Alvefur2021-06-291-3/+7
| | | | | This replaces an earlier method in a private extension that logged pretty-printed XML, which broke due to the escaping added in util.format
* core.loggingmanager: Support passing log messages trough a filterKim Alvefur2021-06-291-2/+5
| | | | This will be used by the console logger for pretty printing.
* loggingmanager, mod_posix: Move syslog to core, fixes #541 (in a way)Matthew Wild2019-03-261-0/+19
|
* Backed out changeset 3eea63a68e0fMatthew Wild2019-03-261-20/+1
| | | | Commit included intended changes to loggingmanager
* util.queue: Update :items() to consistently use private data directlyMatthew Wild2019-03-231-1/+20
| | | | | It will perform better this way, and we were accessing private variables already within the iterator.
* loggingmanager: Remove luacheck annotations for global log functions that ↵Kim Alvefur2018-04-101-1/+0
| | | | are now set in util.startup
* util.startup: Set up event hooks for reloading logging here instead of in ↵Kim Alvefur2018-04-051-6/+0
| | | | loggingmanager to simplify startup dependencies
* util.startup: Initialize prosody.log / _G.log here instead of in ↵Kim Alvefur2018-04-051-3/+0
| | | | loggingmanager to reduce dependencies
* loggingmanager: Hook event for reopening log files instead of config reloadedKim Alvefur2018-03-251-1/+1
|
* vairious: Add annotation when an empty environment is set [luacheck]Kim Alvefur2018-02-281-0/+1
|
* loggingmanager: Make timestamps enabled by default in file sink (fixes #1004)Kim Alvefur2017-10-261-1/+1
|
* core.loggingmanager: Remove now unused locals [luacheck]Kim Alvefur2017-09-111-3/+0
|
* loggingmanager, mod_posix: Import util.format correctly (fixes #985)Kim Alvefur2017-09-111-1/+1
|
* loggingmanager: Slight cleanup and optimization of file sinkWaqas Hussain2017-09-101-6/+7
|
* loggingmanager, mod_posix: Replace the old inconsistent log formatting with ↵Waqas Hussain2017-09-101-11/+2
| | | | the new util.format
* core: Allow select core modules to mutate some globals (needs luacheck 1.19)Kim Alvefur2017-03-041-1/+1
|
* loggingmanager,modulemanager,moduleapi: Ignore warning about accessing ↵Kim Alvefur2016-02-181-1/+2
| | | | _G.unpack [luacheck]
* loggingmanager: Import select() to fix global accessMatthew Wild2016-02-181-1/+1
|
* loggingmanager: Stringify all arguments to format so we can finally see the ↵Kim Alvefur2016-02-041-5/+12
| | | | *real* error messages
* loggingmanager: Remove Windows hack, buffer_mode should fix thisKim Alvefur2016-02-041-7/+0
|
* loggingmanager: Write out timestamps in same write() call as everything elseKim Alvefur2016-02-041-6/+5
|
* loggingmanager: Make initial value for width of log name configurableKim Alvefur2016-02-041-1/+3
|
* loggingmanager: Move logic for adaptive column width into file sink, append ↵Kim Alvefur2016-02-041-9/+11
| | | | tab if disabled (fixes separation between name and level in plain file sinks)
* loggingmanager: Refactor the console log sink to re-use the stdout sink ↵Kim Alvefur2016-02-041-74/+45
| | | | which in turn uses the file sink (tailcalls!)
* loggingmanager: Write out color code, log level and reset code in one callKim Alvefur2016-02-041-4/+2
|
* loggingmanager: Don't reset default timestamp that is not changed by any ↵Kim Alvefur2016-02-041-1/+0
| | | | other code
* loggingmanager: Call setvbuf on output files, defaulting to line-buffered, ↵Matthew Wild2016-02-041-3/+15
| | | | instead of manually calling flush(). Adds 'buffer_mode' option to sink configuration for stdout, console and file sinks.
* loggingmanager: Add prosody.log (intended to be used instead of _G.log now)Matthew Wild2015-12-111-0/+1
|
* core.*: Remove use of module() functionKim Alvefur2015-02-211-4/+7
|
* loggingmanager: Rename function arguments to avoid name conflict [luacheck] ↵Matthew Wild2015-05-181-8/+8
| | | | (core/ is now luacheck-clean!)
* loggingmanager: Improve code structure (removes empty if branch)Matthew Wild2015-04-031-9/+9
|
* Remove all trailing whitespaceFlorian Zeitz2013-08-091-15/+15
|
* core.*: Complete removal of all traces of the "core" section and ↵Kim Alvefur2013-03-231-2/+2
| | | | section-related code.
* core.loggingmanager: Don't create file log rules from [level] = "*sink" ↵Kim Alvefur2012-12-271-1/+1
| | | | style config
* loggingmanager: Remove unused variablesMatthew Wild2012-07-241-6/+4
|
* loggingmanager, util.logger: Remove name sinks and the ability to filter ↵Matthew Wild2012-03-151-28/+6
| | | | logs by source name (lots of code, hardly used if at all, and possibly broken)
* loggingmanager: Remove unused 'critical' levelMatthew Wild2011-11-221-1/+1
|
* loggingmanager: Allow specifying a sink type in per-level logging config ↵Matthew Wild2011-02-131-7/+13
| | | | (thanks ruskie)
* loggingmanager: Iterate over logging config rules using ipairs rather than pairsMatthew Wild2011-02-131-1/+1
|
* loggingmanager: Fix reading configuration of timestamps for console output.Waqas Hussain2011-01-131-1/+1
|
* loggingmanager: Re-read 'debug' option on reload.Waqas Hussain2011-01-131-2/+2
|
* loggingmanager: Remove event hook that never fired anyway, and held logfiles ↵Matthew Wild2011-01-111-6/+0
| | | | open - leave the GC to close them now.
* core.loggingmanager: Updated to use termcolours.getstyle instead of ↵Waqas Hussain2010-12-151-4/+8
| | | | termcolours.getstring for console logging.
* Monster whitespace commit (beware the whitespace monster).Waqas Hussain2010-10-161-2/+2
|
* core.loggingmanager: Logging config simplification - allow [level] = ↵Matthew Wild2010-10-081-2/+20
| | | | filename and *sink to appear in the config table
* loggingmanager: Remove (redundant!) dependency on eventmanagerMatthew Wild2010-08-031-1/+0
|
* loggingmanager: Add reload_logging() method, which gets called on any config ↵Matthew Wild2010-07-141-11/+35
| | | | 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.
* loggingmanager: Enable debug level for default console logging when 'debug' ↵Waqas Hussain2010-05-061-1/+1
| | | | mode is enabled in the config.
* Merge 0.6->0.7Matthew Wild2010-03-221-3/+3
|\