|
Rotary Logger
1.0.2
The middleware rotary logger
|
Functions | |
| None | test_unwritable_root_fallback () |
| None | test_tmpdir_accepted (Path tmp_path) |
# +==== BEGIN rotary_logger =================+ # LOGO: # ..........####...####.......... # ......###.....#.#########...... # ....##........#.###########.... # ...#..........#.############... # ...#..........#.#####.######... # ..#.....##....#.###..#...####.. # .#.....#.##...#.##..##########. # #.....##########....##...###### # #.....#...##..#.##..####.###### # .#...##....##.#.##..###..#####. # ..#.##......#.#.####...######.. # ..#...........#.#############.. # ..#...........#.#############.. # ...##.........#.############... # ......#.......#.#########...... # .......#......#.########....... # .........#####...#####......... # /STOP # PROJECT: rotary_logger # FILE: test_rotary_logger_verify_path.py # CREATION DATE: 29-10-2025 # LAST Modified: 23:33:44 29-10-2025 # DESCRIPTION: # A module that provides a universal python light on iops way of logging to files your program execution. # /STOP # COPYRIGHT: (c) Asperguide # PURPOSE: This is the test file in charge of checking if the error handling for paths work for writable and unwritable paths. # // AR # +==== END rotary_logger =================+
| None tests.test_rotary_logger_verify_path.test_tmpdir_accepted | ( | Path | tmp_path | ) |
A writable absolute tmp path should be accepted and the configured
base folder ('logs') appended if missing.
Definition at line 77 of file test_rotary_logger_verify_path.py.
| None tests.test_rotary_logger_verify_path.test_unwritable_root_fallback | ( | ) |
If the provided path is not writable (e.g. /root), the function should fall back to the package default log folder.
Definition at line 46 of file test_rotary_logger_verify_path.py.