Commit graph

53 commits

Author SHA1 Message Date
InspectorCaracal
faa2553a86 fix recursion 2022-10-04 13:14:00 -06:00
Griatch
3581f7bdad Add rotation exception handling to daily log rotater, per #2083 2022-09-22 19:53:01 +02:00
Griatch
a83f21ef2f Apply black to cleanup code 2022-06-12 09:46:48 +02:00
Griatch
4e2962fef8 Further improvement of log conditional 2022-02-14 00:34:13 +01:00
Griatch
42ee0db1da Update logger.py to use new Twisted log api. No change in evennia-side usage 2022-02-13 22:52:11 +01:00
Griatch
bd3e31bf3c Run black reformatter on code 2022-02-08 13:03:52 +01:00
Griatch
8e382d9383 Resolve merge conflicts 2021-10-02 19:20:58 +02:00
Griatch
a4d34358fe More log tweaks 2021-10-02 19:05:26 +02:00
Griatch
e4bad8007f Test generator for log file return 2021-10-02 18:57:51 +02:00
Griatch
5d1ff40d75 Further fix of logger 2021-10-02 18:47:12 +02:00
Griatch
c041425bca Catch unicode-decode error in logger display 2021-10-02 18:44:33 +02:00
Griatch
7ff8cbb341 I18n string cleanup and refactoring 2021-05-27 17:37:26 +02:00
Griatch
51bef9bf97 Move alias/connect setup to channel class rather than cmd 2021-05-14 21:53:23 +02:00
Griatch
cc809dd7e8 Minor fix for logging 2020-11-13 22:53:13 +01:00
Griatch
815c82607c Minor fix for logging 2020-11-13 22:52:50 +01:00
Griatch
c3cf3f99ab Ran black on code 2020-01-29 23:18:22 +01:00
Griatch
ff16eb1bfe Make log rotation also limited by size and controllable from settings. Resolves #2041 2020-01-29 23:16:53 +01:00
Griatch
69d85bd184 Make scripts/objects lists use EvMore. Change EvMore to not justify by default. 2020-01-11 15:49:12 +01:00
Griatch
4ea6209123 Ran black on branc 2019-12-16 20:31:42 +01:00
Griatch
c2c7fa311a Format code with black. Add makefile to run fmt/tests 2019-09-28 18:18:11 +02:00
Griatch
6b2c2ee6e3 Properly encode FileLogger's readline output. Resolve #1875. 2019-09-09 07:18:28 +02:00
Griatch
0a062517bd Fix-length log file date format, retain unix sort. Resolves #1721. 2019-03-31 22:45:19 +02:00
Griatch
72f4fedcbe Merge with develop and fix merge conflicts 2018-10-01 20:58:16 +02:00
Johnny
156dbd8d2d Adds a logger for security-related events. 2018-09-21 18:29:44 +00:00
Griatch
4376058ee9 Merge branch 'master' into develop 2018-01-27 14:20:13 +01:00
Griatch
05b0869a5c Have log_file file handles refresh after a certain number of accesses. Possibly related to #1305 2018-01-27 14:19:06 +01:00
Griatch
d6105f6d6c Remove dependence on .restart file, add reboot option to launcher 2018-01-20 12:41:27 +01:00
Griatch
a2d63c9582 Add log-tailing to launcher options 2018-01-19 23:47:14 +01:00
Griatch
4769599cf9 Clean tz from log if in CET time 2018-01-19 09:50:26 +01:00
Griatch
fbbf920587 Homogenize log time format in logger module 2018-01-19 01:58:24 +01:00
Griatch
713766b33a Change log format, rename, join server/portal logs 2018-01-19 01:27:52 +01:00
Griatch
5133034b4b Working start/reload/reset/stop from launcher 2018-01-14 22:53:36 +01:00
Tehom
c689b4d028 Attempt to handle any errors in logging. 2017-12-19 00:28:48 -05:00
Ryan Stein
6fa280b9fd Run 2to3. 2017-10-29 13:40:30 -04:00
Griatch
b278337172 Make PEP8 cleanup of line spaces and character distances as well as indents 2017-08-19 23:16:36 +02:00
Griatch
6370c377d5 Add cache optimization to variable imports in logger. 2017-05-21 19:24:54 +02:00
Tehom
2bea778181 Move settings to be local imports to prevent conflicts before django is fully loaded 2017-05-21 06:59:54 -04:00
Tehom
4605b3128e Add docstr to class and methods, adjust names of settings to be more clearly modifying channel logs. 2017-05-21 03:29:33 -04:00
Tehom
6e2c10b008 Remove print statements I had left in during debugging. Oops. 2017-05-20 22:18:26 -04:00
Tehom
f150d8bae5 Add Evennia logfile class based on Twisted LogFile for automatic rotating channel logs. Append tail end of logs when rotating, customizable with settings. 2017-05-20 21:33:57 -04:00
BlauFeuer
4d8c5964a4 PEP 8 comply, docstring typo 2017-03-19 20:24:51 +01:00
Griatch
74eebfed6d Refactor code to remove alerts as per lgtm and #1176. 2017-01-29 19:02:00 +01:00
Griatch
fd50eaddba Fixed an error in channel.msg. Made sure to return a deferred from tail_log_file as its documentation suggests it should. 2016-05-22 20:45:42 +02:00
Griatch
4a58fcb9f1 Made the tail-viewing of a log-file threaded for maximum asynchronicity. 2016-05-22 20:45:42 +02:00
Griatch
5583a8d758 Made channels log to a log file by default. Added a default /history switch to the channel commands (for viewing past entries) and implemented a very efficient tail_log_file function to scan the log and display it. 2016-05-22 20:45:42 +02:00
Griatch
652bb02bc7 In the wake of changes to hide away tracebacks from players, made the error report include the server log time stamp so as to make it easier to reconcile with the real traceback information. 2015-11-09 15:07:06 +01:00
Ahmed Charles
f890c8bddb Update logger docs. 2015-10-19 23:31:19 +02:00
Ahmed Charles
0384fcc63d Move to python3 style except. 2015-10-19 23:31:19 +02:00
Griatch
eb2bd8d44c Converted a large part of utils/ folder to google code docstrings as per #709. 2015-09-27 20:24:03 +02:00
Griatch
3ebc55da82 Changed datetime setter to use utils.timezone instead of naive datetime stamps, as per #728. 2015-03-27 07:05:13 +01:00