@@ -1634,7 +1634,7 @@ method. Since then, Python has gained two new formatting approaches:
16341634
16351635Logging (as of 3.2) provides improved support for these two additional
16361636formatting styles. The :class: `Formatter ` class been enhanced to take an
1637- additional, optional keyword parameter named ``style ``. This defaults to
1637+ additional, optional keyword argument named ``style ``. This defaults to
16381638``'%' ``, but other possible values are ``'{' `` and ``'$' ``, which correspond
16391639to the other two formatting styles. Backwards compatibility is maintained by
16401640default (as you would expect), but by explicitly specifying a style parameter,
@@ -1675,10 +1675,10 @@ That can still use %-formatting, as shown here::
16751675 >>>
16761676
16771677Logging calls (``logger.debug() ``, ``logger.info() `` etc.) only take
1678- positional parameters for the actual logging message itself, with keyword
1679- parameters used only for determining options for how to handle the actual
1680- logging call (e.g. the ``exc_info `` keyword parameter to indicate that
1681- traceback information should be logged, or the ``extra `` keyword parameter
1678+ positional arguments for the actual logging message itself, with keyword
1679+ arguments used only for determining options for how to handle the actual
1680+ logging call (e.g. the ``exc_info `` keyword argument to indicate that
1681+ traceback information should be logged, or the ``extra `` keyword argument
16821682to indicate additional contextual information to be added to the log). So
16831683you cannot directly make logging calls using :meth: `str.format ` or
16841684:class: `string.Template ` syntax, because internally the logging package
@@ -2732,10 +2732,10 @@ governs the formatting of logging messages for final output to logs, and is
27322732completely orthogonal to how an individual logging message is constructed.
27332733
27342734Logging calls (:meth: `~Logger.debug `, :meth: `~Logger.info ` etc.) only take
2735- positional parameters for the actual logging message itself, with keyword
2736- parameters used only for determining options for how to handle the logging call
2737- (e.g. the ``exc_info `` keyword parameter to indicate that traceback information
2738- should be logged, or the ``extra `` keyword parameter to indicate additional
2735+ positional arguments for the actual logging message itself, with keyword
2736+ arguments used only for determining options for how to handle the logging call
2737+ (e.g. the ``exc_info `` keyword argument to indicate that traceback information
2738+ should be logged, or the ``extra `` keyword argument to indicate additional
27392739contextual information to be added to the log). So you cannot directly make
27402740logging calls using :meth: `str.format ` or :class: `string.Template ` syntax,
27412741because internally the logging package uses %-formatting to merge the format
0 commit comments