Thanks for response.
Should I prepare some PR now?
Generally I think about implementing `.uses_server_time()` using 
`_style.asctime_search` attribute:

'server_time')) >=  0`

this call of `str.replace()` can be done even only once in 

W dniu sobota, 9 lutego 2019 00:11:03 UTC+1 użytkownik Tim Graham napisał:
> 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 
>> <>
>>  and 
>> generally `ServerFormatter.uses_server_time()` method. 
>> This method forces users to use `{` logging style, by hard coding it in 
>> the following line: `return self._fmt.find('{server_time}') >= 0`, so it 
>> works only with `{` style, which is the default one.
>> I couldn't find any explanation why users should use `{` style instead of 
>> `%` or `$` and I think style should be totally irrelevant to Django.
>> My suggestion is to make `ServerFormatter.uses_server_time()` workable 
>> with all logging styles or to add some note to documentation that `{` 
>> logging style must be used when `ServerFormatter` is overwritten.
>> If you decide to make some changes in relation to this issue, I am eager 
>> to contribute.
>> Thank you all for working on Django!
>> Kind Regards,
>> Łukasz

You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to