From dabd9b94328995cd0d3123e98d6812744981b135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 25 Dec 2024 14:31:35 +0100 Subject: [PATCH] Logging --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b1cf2d2..cfa9dfd 100644 --- a/README.md +++ b/README.md @@ -2167,7 +2167,7 @@ match : ... parts=['/', 'home', user, *_] ... ) as p if p.name.lower().startswith('readme') and p.is_file(): ... print(f'{p.name} is a readme file that belongs to user {user}.') -README.md is a readme file that belongs to user gto. +'README.md is a readme file that belongs to user gto.' ``` @@ -2220,9 +2220,9 @@ log.basicConfig( >>> log.basicConfig() >>> log.root.handlers[0].setLevel('WARNING') >>> logger.critical('Running out of disk space.') -CRITICAL:my_module:Running out of disk space. +'CRITICAL:my_module:Running out of disk space.' >>> print(open('test.log').read()) -2023-02-07 23:21:01,430 CRITICAL:my_module:Running out of disk space. +'2023-02-07 23:21:01,430 CRITICAL:my_module:Running out of disk space.' ```