Commit graph

61 commits

Author SHA1 Message Date
Peter Bieringer
b356edd6be Improve: suppress duplicate log lines on startup 2024-12-18 20:51:33 +01:00
Peter Bieringer
d83885d108 extend copyright 2024-06-18 08:24:04 +02:00
Peter Bieringer
695c5d8416 align default log level with config.py 2024-06-09 13:43:23 +02:00
Peter Bieringer
ad596002f3 add support for conditional logging of backtrace_on_debug 2024-06-09 13:42:08 +02:00
Unrud
6ae831a324 User-selectable logger formats 2023-03-22 11:18:14 +01:00
Unrud
8efb942892 Use existing record for building ident 2023-03-22 11:18:14 +01:00
Unrud
a2be03fdaf Log systemd journal connection error 2023-03-22 10:42:17 +01:00
Unrud
77626e5aed Remove unnecessary check 2023-03-22 10:42:17 +01:00
Unrud
390240c35a Write log with single syscall 2023-03-22 10:42:17 +01:00
Unrud
5070533a0b Defer connection to systemd journal 2023-03-22 10:42:17 +01:00
Unrud
e23f0283b0 Fix: Filter empty entries from journal protocol 2023-03-21 01:29:29 +01:00
Unrud
9276c65462 Upgrade to journald's native journal protocol 2023-03-21 00:11:41 +01:00
Unrud
bbaf0ebd8c Change name in file header 2021-12-09 16:55:46 +01:00
Unrud
cecb17df03 More type hints 2021-09-26 22:24:45 +02:00
Unrud
d8f1565f5b Remove journald support 2020-02-19 09:50:45 +01:00
Unrud
6b46b01fcb Include time in log messages 2020-02-19 09:50:40 +01:00
Unrud
698980d7be Remove forking support
* Third-party plugins have to be fork-safe
* Not supported on Windows
2020-02-19 09:50:02 +01:00
Unrud
0fb02cd026 Cosmetic changes (pylint) 2020-01-17 12:59:14 +01:00
Unrud
88a0af8ba1 Improve documentation 2020-01-12 23:32:28 +01:00
Unrud
b7590f8c84 Rework configuration 2019-06-17 04:18:09 +02:00
Unrud
63e6d091b9 Update copyright 2019-06-17 04:13:24 +02:00
Unrud
edc20ed510 Implement fallback for multiprocessing module
module is not working on Android
2018-11-03 21:51:09 +00:00
Unrud
f1a587e9d7 cosmetics 2018-09-06 09:12:52 +02:00
Unrud
5e0a387ed9 remove whitespace before email 2018-09-04 03:33:47 +02:00
Unrud
8869b34470 refactor 2018-08-28 16:19:43 +02:00
Unrud
72501c6e23 only set level on "radicale" logger 2018-08-21 18:43:45 +02:00
Unrud
af831ff13f Log thread name when not main thread 2018-08-18 16:43:18 +02:00
Unrud
30a9ecc06b Use forking for internal server when available 2018-08-18 12:56:41 +02:00
Unrud
59f7104dce Replace option "debug" with "level" in "logging" 2018-08-16 08:00:02 +02:00
Unrud
bd52dcd590 Detect systemd journal 2018-08-16 07:59:57 +02:00
Unrud
24815255be Use wsgi.errors to for errors 2018-08-16 07:59:56 +02:00
Unrud
54b9995e22 Use module-wide logger and remove logging config 2018-08-16 07:59:55 +02:00
Unrud
5d27265d5c fail when logging config file is not found 2017-06-02 12:43:03 +02:00
Unrud
c9664137a5 Improve error handling
* Check the configuration file for errors (check option names and basic type checking).
  * Perform basic type checking on command line arguments.
  * Only print stack traces in debug mode.
  * Include much more information in error messages (e.g. include the path of invalid files).
  * Send Bad Request to clients for invalid XML requests or iCalendar data.
  * Change the log level of some messages.
2017-05-31 11:31:54 +02:00
Guillaume Ayoub
3e0c8cf285 Update copyright years 2017-05-27 17:28:07 +02:00
Unrud
d371179487 thread and level in simple log formatter
The log messages are a mess without any allocation to threads.
2016-09-04 11:47:27 +02:00
Unrud
e40e46e164 Don't disable existing loggers
The logger is retrieved before configure_from_file is called and gets disabled, the same happens when the logging configuration is reloaded.
2016-08-25 05:24:29 +02:00
Unrud
de8c2f0909 Fix SIGHUP handler
The function handler_generator seems useless and the return statement is missing.
2016-08-25 05:24:29 +02:00
Unrud
c091399f5e Write log to stderr
Be consistent with python's default behavior and play nice with CGI.
2016-08-25 05:19:38 +02:00
Unrud
14515cfe27 Fix logger configuration
Apply patch from #485
2016-08-25 04:29:02 +02:00
Guillaume Ayoub
6bfdcbafec Cosmetics 2016-08-01 12:50:51 +02:00
Florian Mounier
221379ef85 Sort imports 2016-07-04 14:32:33 +02:00
Guillaume Ayoub
5b5edaac2f Fix FCGI and WSGI scripts 2016-07-01 10:28:51 +02:00
Guillaume Ayoub
2f97d7d1e1 Remove global state about configuration and logs
Many things have been changed to make this possible, probably leading to
many hidden bugs waiting to be found.

Related to #122.
2016-04-22 11:37:02 +09:00
Guillaume Ayoub
434cb533e9 Remove Python 2 support 2016-03-31 19:57:40 +02:00
Guillaume Ayoub
ea97c014b7 Don't crash because of missing SIGHUP on Windows
Fix #229.
2014-11-03 11:21:12 +01:00
Élie Bouttier
ab04e38dc8 Reload logger config on SIGHUP
Particularly useful for logrotate.
2014-07-28 12:15:08 -07:00
Guillaume Ayoub
f09b070e40 Fix stupid bug in logs 2013-08-27 15:19:15 +02:00
Guillaume Ayoub
05dbd71eca Fix logging 2013-07-12 17:45:09 +02:00
Guillaume Ayoub
b60b759a36 Use extra parameter instead of formatted line in logger 2013-07-12 16:28:58 +02:00