Commit graph

41 commits

Author SHA1 Message Date
Kim Alvefur
43531740f9 util: Prefix module imports with prosody namespace 2023-03-17 16:23:16 +01:00
Matthew Wild
a946bdf4ae util.logger: Return sink_function from add_simple_sink()
This allows a simple sink to be later removed via remove_sink()
2022-03-17 10:20:23 +00:00
Matthew Wild
9f34801aba util.logger: Support for removing individual log sinks without a full reset 2022-03-17 10:19:35 +00:00
Kim Alvefur
731b153dd2 util.logger: Import globals (fixes on Lua 5.2) 2018-02-28 20:17:21 +01:00
Kim Alvefur
43b814a83b vairious: Add annotation when an empty environment is set [luacheck] 2018-02-28 20:06:26 +01:00
Matthew Wild
eabaac8268 util.logger: New method 'add_simple_sink', logger.add_simple_sink(print) works 2018-02-27 16:02:25 +00:00
Kim Alvefur
d7ef1df39b util.logger: Silence luacheck warning 2016-02-04 16:40:32 +01:00
Kim Alvefur
5b245d20fe util.logger: Remove unused locals 2016-02-04 16:38:56 +01:00
Kim Alvefur
eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 2015-02-21 10:36:37 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
538620add4 util.logger: Remove some redundant code 2012-06-25 00:16:08 +01:00
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) 2012-03-15 19:09:24 +00:00
Matthew Wild
fabbca99cf util.logger: Remove support for a global writer (setwriter) to try and balance the forces... 2010-11-04 08:42:18 +00:00
Matthew Wild
bda7879483 util.logger: Remove my precious premature optimisation :( 2010-11-04 08:37:39 +00:00
Waqas Hussain
b7e51a203d Monster whitespace commit (beware the whitespace monster). 2010-10-16 23:00:42 +05:00
Matthew Wild
79bc5ec98d util.logger: Remove support for the 'log_sources' option, to remove a dependency on configmanager. I think the equivalent of log_sources can be done with the advanced logging config. 2010-08-22 18:45:58 +01:00
Matthew Wild
52cde37cdb util.logger: Add reset() method to clear all sinks 2010-07-14 01:23:14 +01:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
118883d655 Remove version number from copyright headers 2009-07-10 03:11:45 +01:00
Matthew Wild
ba9a650e91 util.logger: Fix for attempting to call a table 2009-04-21 20:29:38 +01:00
Matthew Wild
72a1041168 util.logger: Revamped logger library, but backwards-compatible for users of logger.init() 2009-04-21 03:18:13 +01:00
Matthew Wild
e99f46bcda Remove more debugging code which was accidentally committed (don't trust hg) 2009-04-10 10:38:04 +01:00
Matthew Wild
8ba629387a Merge 2009-04-10 10:31:38 +01:00
Matthew Wild
c80f91dc02 0.3->0.4 2009-03-20 20:16:25 +00:00
Matthew Wild
b657bdb211 util.logger: Small code tidying :) 2009-03-07 19:40:00 +00:00
Tobias Markmann
8a253c1cc9 Support to filter logging by source via pattern matching from config file. 2009-03-07 20:33:21 +01:00
Waqas Hussain
4d0953b52b Logging format improvement 2009-02-13 19:14:36 +05:00
Matthew Wild
c5ee166aa9 Update copyright notices for 2009 2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f 0.2->0.3 2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d GPL->MIT! 2009-01-30 17:22:56 +00:00
Waqas Hussain
dbab107f8e util/logger: setwriter now returns the old writer on success 2009-01-14 23:04:16 +05:00
Matthew Wild
d3ad4a5123 0.1 -> 0.2 2008-12-10 15:44:03 +00:00
Matthew Wild
bf7d712864 Make it possible to set custom output handler for logger 2008-12-06 23:13:38 +00:00
Matthew Wild
0c5cc83112 Insert copyright/license headers 2008-12-03 14:39:07 +00:00
Matthew Wild
d70ee791d5 Nice enhancement for logging output 2008-11-27 03:06:29 +00:00
Matthew Wild
5efcee9d4d Remove or comment useless prints, or change them to log() 2008-11-20 03:00:43 +00:00
Matthew Wild
d67940a1d7 A treat for Linux users ;) 2008-11-14 16:03:33 +00:00
Matthew Wild
428fc65bbc Some more logging fixes 2008-11-14 02:41:37 +00:00
Matthew Wild
5031be1f8c working incoming s2s \o/ 2008-10-24 06:13:38 +01:00
Matthew Wild
88af2ea6e9 Session destruction fixes, some debugging code while we fix the rest. Also change logger to be more useful. 2008-10-04 15:25:54 +01:00
Matthew Wild
a53395e6b7 Huge commit to:
* Break stanza routing (to be restored in a future commit)
* Remove the old stanza_dispatcher code, which was never going to be maintainable nor extendable :)
* Bring us plugins, starting with mod_legacyauth and mod_roster
* Sessions are now created/destroyed using a standard sessionmanager interface
2008-09-30 19:52:00 +01:00