Brian Schubert
d4a1c39d5c
Make filename, stream, and handlers parameters of logging.basicConfig mutually-exclusive ( #15435 )
2026-02-18 09:49:35 +01:00
Ali Hamdan
2b2a93d632
stdlib: add default values to logging.basicConfig ( #15433 )
2026-02-16 17:00:34 -05:00
J Rob Gant
da3de3ac09
[logging] Allow FileHandler.stream to be None ( #15378 )
2026-02-12 14:38:18 +01:00
Randolf Scholz
5c49b1fe49
Specialize plain slice type hints ( #13007 )
2026-01-23 10:35:39 +01:00
Jelle Zijlstra
e8ba06f710
Add @disjoint_base decorator in the stdlib ( #14599 )
...
And fix some other new stubtest finds.
2025-08-24 07:27:14 -07:00
Semyon Moroz
5e0d6ee95e
[stdlib] Copy-edit deprecation messages ( #14614 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2025-08-21 12:12:00 +01:00
Eric Eastwood
ab0968b416
Add logging.config.BaseConfigurator.config ( #14590 )
2025-08-19 15:00:05 +02:00
Semyon Moroz
85a787bba3
[stdlib] Mark constants as Final ( #14577 )
2025-08-15 13:19:03 +02:00
Brian Schubert
622df68c1c
Add @type_check_only to stub-only private classes in stdlib ( #14512 )
2025-08-03 10:13:16 +02:00
Jens Hedegaard Nielsen
9c0218ee04
Add merge_extra attribute to LoggerAdapter ( #14197 )
2025-05-30 16:39:32 +02:00
Semyon Moroz
b7d5b1d7f1
Update logging.handlers.SysLogHandler for 3.14 ( #14058 )
...
* Update `logging.handlers.SysLogHandler` for 3.14
* Fix method name
---------
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2025-05-14 13:16:44 +02:00
Max Muoto
8bd5455b32
Add context manager support for QueueListener (3.14) ( #13996 )
2025-05-10 14:18:37 -07:00
Alex Waygood
d92a6449c2
Remove more Python 3.8 cruft ( #13787 )
2025-04-03 11:56:38 +01:00
Sebastian Rittau
30b16c168d
Drop Python 3.8 branches ( #13776 )
2025-04-03 10:35:36 +02:00
Avasam
4b253d2932
Enable Ruff flake8-todos (TD) ( #13748 )
2025-04-03 07:43:54 +02:00
Sebastian Rittau
b943f311ac
logging.config: Add @type_check_only markers ( #13674 )
2025-03-19 16:23:24 +01:00
Blaze
30c9af5aaa
Add listener attribute to QueueHandler ( #12986 )
2024-11-08 05:55:03 -08:00
Brian Schubert
951c0b82e8
Update logging.config.fileConfig to accept any Mapping for defaults ( #12973 )
2024-11-07 13:12:24 -08:00
Brian Schubert
ab8e0e1ca1
Fix return type of logging.config.BaseConfigurator.as_tuple ( #12817 )
2024-10-15 19:54:48 +01:00
Peter Bierma
ae15dd3158
Restore the deprecated logging.warn() in 3.13 ( #12509 )
2024-08-10 23:52:20 +03:00
Max Muoto
9a77f6006d
Use Final for undocumented constants ( #12450 )
2024-07-28 12:02:06 +02:00
Max Muoto
8ac4af63cd
Final for logging constants ( #12453 )
2024-07-28 11:58:30 +02:00
Sebastian Rittau
dc504f5175
Deprecate logging.getLevelName(str) ( #12093 )
...
See https://docs.python.org/3/library/logging.html#logging.getLevelName
2024-06-20 00:43:46 -07:00
Colin Watson
97ccd8985a
Tighten annotation of logging.getLevelName ( #12088 )
...
To better reflect the implementation's behaviour,
https://github.com/python/typeshed/pull/2730 changed
`logging.getLevelName` to accept `int | str` and return `Any` (the
latter due to the need to avoid union return types). However, this
isn't ideal if you're passing in an `int`, in which case the
implementation always returns a `str`. Add overloads for this.
2024-06-04 10:16:53 +02:00
muamerp
10bf03bd38
Change type of logging.RotatingFileHandler.maxBytes from str to int ( #12045 )
2024-05-27 13:34:34 +02:00
Alex Waygood
ac6c61ba04
Stubtest stdlib: unpin 3.11 and 3.12 micro versions ( #12022 )
2024-05-23 13:24:28 -07:00
Alex Waygood
b8d144d491
Add 3.13 to our CI ( #11926 )
2024-05-19 16:18:49 -04:00
Shantanu
2756f16a11
logging: update for py313 ( #11972 )
2024-05-18 14:49:22 -07:00
Shantanu
d9cf43c4c3
Mark pos-only __class_getitem__ args ( #11970 )
2024-05-18 23:27:51 +02:00
Ed Younis
3e3fd0dd86
Changed logging.lastResort type to Handler ( #11872 )
2024-05-07 14:55:01 +02:00
Alex Waygood
d0f2be92ab
Bump pyright to v1.1.360 ( #11810 )
2024-04-24 14:09:16 +02:00
Ismail S
a20f54663c
Add taskName to LogRecord ( #11609 )
2024-03-15 15:34:13 +01:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Sebastian Rittau
3a036b64fc
logging: Remove hack obsoleted by PEP 655 (#11078 )
2023-11-30 21:48:54 +00:00
Anthony Sottile
53592e421a
set root for logging dict config to be non-None ( #11077 )
2023-11-28 20:21:19 +01:00
Jens Tröger
590f89b594
logging: Add a _FilterProtocol type to Filterer.addFilter() filter argument. ( #11018 )
2023-11-14 11:14:19 +02:00
Tomás Farías Santana
a76978b28f
Add _thread attribute for logging.handlers.QueueListener ( #10747 )
2023-09-22 01:54:19 +03:00
kasium
ab22048661
py312: Filter(er) might return a LogRecord ( #10540 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-08-07 15:30:33 +01:00
Nikita Sobolev
161dd4b34f
Update logging for 3.12 ( #10538 )
2023-08-07 12:02:44 +01:00
Nikita Korolev
7ffb7cef69
SysLogHandler facility could be a string ( #10206 )
...
It is possible to pass syslog facility as string to __init__ too
2023-05-24 19:46:37 -07:00
Alex Waygood
d1bfd08b4b
Allow passing multiprocessing.Queues to QueueListener/QueueHandler ( #10169 )
2023-05-10 17:06:41 +02:00
Tomas R
a7748a9dd1
Add missing stubs for logging.config ( #10055 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2023-04-27 07:57:46 -07:00
Nikita Sobolev
cd3f52ac14
Simplify logging.config type imports ( #10077 )
2023-04-24 14:41:10 +03:00
Amin Alaee
b6564d976b
logging.LogRecord: improve annotation for msg (#9914 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-03-21 15:40:37 +00:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
b0dc6a3405
Add defaults to logging.LoggerAdapter methods ( #9797 )
2023-02-22 11:50:11 +01:00
Alex Waygood
fbc092b4cd
Stdlib: add defaults for several functions that delegate kwargs to other functions at runtime ( #9791 )
2023-02-21 23:31:25 -08:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00