@@ -2599,8 +2599,8 @@ should, then :meth:`flush` is expected to do the needful.
25992599 .. method :: flush()
26002600
26012601 For a :class: `MemoryHandler `, flushing means just sending the buffered
2602- records to the target, if there is one. Override if you want different
2603- behavior.
2602+ records to the target, if there is one. The buffer is also cleared when
2603+ this happens. Override if you want different behavior.
26042604
26052605
26062606 .. method :: setTarget(target)
@@ -2972,15 +2972,18 @@ __ context-info_
29722972 'extra'. The return value is a (*msg *, *kwargs *) tuple which has the
29732973 (possibly modified) versions of the arguments passed in.
29742974
2975- In addition to the above, :class: `LoggerAdapter ` supports all the logging
2975+ In addition to the above, :class: `LoggerAdapter ` supports the following
29762976methods of :class: `Logger `, i.e. :meth: `debug `, :meth: `info `, :meth: `warning `,
2977- :meth: `error `, :meth: `exception `, :meth: `critical ` and :meth: `log `. These
2978- methods have the same signatures as their counterparts in :class: `Logger `, so
2979- you can use the two types of instances interchangeably.
2977+ :meth: `error `, :meth: `exception `, :meth: `critical `, :meth: `log `,
2978+ :meth: `isEnabledFor `, :meth: `getEffectiveLevel `, :meth: `setLevel `,
2979+ :meth: `hasHandlers `. These methods have the same signatures as their
2980+ counterparts in :class: `Logger `, so you can use the two types of instances
2981+ interchangeably.
29802982
29812983.. versionchanged :: 3.2
2982- The :meth: `isEnabledFor ` method was added to :class: `LoggerAdapter `. This
2983- method delegates to the underlying logger.
2984+ The :meth: `isEnabledFor `, :meth: `getEffectiveLevel `, :meth: `setLevel ` and
2985+ :meth: `hasHandlers ` methods were added to :class: `LoggerAdapter `. These
2986+ methods delegate to the underlying logger.
29842987
29852988
29862989Thread Safety
0 commit comments