File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -534,6 +534,25 @@ mnemonic that the corresponding value is a callable.
534
534
The ``filters `` member of ``handlers `` and ``loggers `` can take
535
535
filter instances in addition to ids.
536
536
537
+ You can also specify a special key ``'.' `` whose value is a dictionary is a
538
+ mapping of attribute names to values. If found, the specified attributes will
539
+ be set on the user-defined object before it is returned. Thus, with the
540
+ following configuration::
541
+
542
+ {
543
+ '()' : 'my.package.customFormatterFactory',
544
+ 'bar' : 'baz',
545
+ 'spam' : 99.9,
546
+ 'answer' : 42,
547
+ '.' {
548
+ 'foo': 'bar',
549
+ 'baz': 'bozz'
550
+ }
551
+ }
552
+
553
+ the returned formatter will have attribute ``foo `` set to ``'bar' `` and
554
+ attribute ``baz `` set to ``'bozz' ``.
555
+
537
556
538
557
.. _logging-config-dict-externalobj :
539
558
You can’t perform that action at this time.
0 commit comments