diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-11-15 20:58:47 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-11-15 20:58:47 (GMT) |
commit | 56b04352f8d1ef4a3c625b52a92ad1bae99ed022 (patch) | |
tree | cbfacd9cfae9ed6d0ace2ae5094434251172d28a /Doc/howto | |
parent | 5e75829ec300733dc0b81a36d6db69b823cf9da8 (diff) | |
parent | 9c10d6b8000e445093e73c295ad87b5e081902f7 (diff) | |
download | cpython-56b04352f8d1ef4a3c625b52a92ad1bae99ed022.zip cpython-56b04352f8d1ef4a3c625b52a92ad1bae99ed022.tar.gz cpython-56b04352f8d1ef4a3c625b52a92ad1bae99ed022.tar.bz2 |
Issue #19504: Used American spelling for 'customize'.
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/logging-cookbook.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst index aa5b43e..feb9b6c 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -1096,7 +1096,7 @@ Python 3.2 or later. .. _custom-logrecord: -Customising ``LogRecord`` +Customizing ``LogRecord`` ------------------------- Every logging event is represented by a :class:`LogRecord` instance. @@ -1313,7 +1313,7 @@ of the Django documentation. .. _cookbook-rotator-namer: -Using a rotator and namer to customise log rotation processing +Using a rotator and namer to customize log rotation processing -------------------------------------------------------------- An example of how you can define a namer and rotator is given in the following @@ -1694,14 +1694,14 @@ Python used. .. currentmodule:: logging.config -Customising handlers with :func:`dictConfig` +Customizing handlers with :func:`dictConfig` -------------------------------------------- -There are times when you want to customise logging handlers in particular ways, +There are times when you want to customize logging handlers in particular ways, and if you use :func:`dictConfig` you may be able to do this without subclassing. As an example, consider that you may want to set the ownership of a log file. On POSIX, this is easily done using :func:`shutil.chown`, but the file -handlers in the stdlib don't offer built-in support. You can customise handler +handlers in the stdlib don't offer built-in support. You can customize handler creation using a plain function such as:: def owned_file_handler(filename, mode='a', encoding=None, owner=None): |