Re: django logging - `ServerFormatter.uses_server_time()` forces users to use `{` logging style

2019-02-09 Thread Łukasz Skarżyński
Thanks for response. Should I prepare some PR now? Generally I think about implementing `.uses_server_time()` using `_style.asctime_search` attribute: `self._fmt.find(self._style.asctime_search.replace('asctime', 'server_time')) >= 0` this call of `str.replace()` can be done even only once in

Re: django logging - `ServerFormatter.uses_server_time()` forces users to use `{` logging style

2019-02-08 Thread Tim Graham
I'm not opposed to a patch to address your use case. On Thursday, February 7, 2019 at 6:34:23 AM UTC-5, Łukasz Skarżyński wrote: > > Hello, > > I encountered some troubles with django logging configuration during the > update from Django 1.11 to 2.1. This issue was related to this commit >

django logging - `ServerFormatter.uses_server_time()` forces users to use `{` logging style

2019-02-07 Thread Łukasz Skarżyński
Hello, I encountered some troubles with django logging configuration during the update from Django 1.11 to 2.1. This issue was related to this commit and generally `ServerFormatter.uses_server_time()` method. T