diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-11-15 20:58:13 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-11-15 20:58:13 (GMT) |
commit | 9c10d6b8000e445093e73c295ad87b5e081902f7 (patch) | |
tree | c7e73f05a8a906f025f18fbd1ef21a5b1d688e1b /Doc/howto/logging-cookbook.rst | |
parent | a76157dca6ba0d063a88cf4c0b6ac132881001b1 (diff) | |
download | cpython-9c10d6b8000e445093e73c295ad87b5e081902f7.zip cpython-9c10d6b8000e445093e73c295ad87b5e081902f7.tar.gz cpython-9c10d6b8000e445093e73c295ad87b5e081902f7.tar.bz2 |
Issue #19504: Used American spelling for 'customize'.
Diffstat (limited to 'Doc/howto/logging-cookbook.rst')
-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 cc3c26a..3f256e1 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -1098,7 +1098,7 @@ Python 3.2 or later. .. _custom-logrecord: -Customising ``LogRecord`` +Customizing ``LogRecord`` ------------------------- Every logging event is represented by a :class:`LogRecord` instance. @@ -1315,7 +1315,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 @@ -1696,14 +1696,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): |