Rotary Logger  1.0.2
The middleware rotary logger
Loading...
Searching...
No Matches
tests.test_integration_writes Namespace Reference

Functions

Path _find_log_by_folder (Path root, Optional[str] folder_name)
 
None test_start_logging_split_writes (Path tmp_path)
 
None test_start_logging_merged_writes (Path tmp_path)
 
None test_merge_stdin_shares_same_file_as_stdout (Path tmp_path)
 
None test_split_mode_stdin_has_own_instance (Path tmp_path)
 

Detailed Description

# +==== BEGIN rotary_logger =================+
# LOGO: 
# ..........####...####..........
# ......###.....#.#########......
# ....##........#.###########....
# ...#..........#.############...
# ...#..........#.#####.######...
# ..#.....##....#.###..#...####..
# .#.....#.##...#.##..##########.
# #.....##########....##...######
# #.....#...##..#.##..####.######
# .#...##....##.#.##..###..#####.
# ..#.##......#.#.####...######..
# ..#...........#.#############..
# ..#...........#.#############..
# ...##.........#.############...
# ......#.......#.#########......
# .......#......#.########.......
# .........#####...#####.........
# /STOP
# PROJECT: rotary_logger
# FILE: test_integration_writes.py
# CREATION DATE: 01-11-2025
# LAST Modified: 3:41:50 04-03-2026
# DESCRIPTION: 
# A module that provides a universal python light on iops way of logging to files your program execution.
# /STOP
# COPYRIGHT: (c) Asperguide
# PURPOSE: File in charge of testing the dual channel logging where each stream is logged to it's own file.
# // AR
# +==== END rotary_logger =================+

Function Documentation

◆ _find_log_by_folder()

Path tests.test_integration_writes._find_log_by_folder ( Path root,
Optional[str] folder_name )
protected
Return the first .log file under root matching the folder_name.

If folder_name is None, look for log files directly under the day
directory (i.e. not in stdout/stderr subfolders).

Definition at line 41 of file test_integration_writes.py.

◆ test_merge_stdin_shares_same_file_as_stdout()

None tests.test_integration_writes.test_merge_stdin_shares_same_file_as_stdout ( Path tmp_path)
With merge_stdin=True and merged=True, stdin uses the same FileInstance as stdout/stderr.

Definition at line 129 of file test_integration_writes.py.

◆ test_split_mode_stdin_has_own_instance()

None tests.test_integration_writes.test_split_mode_stdin_has_own_instance ( Path tmp_path)
In split mode (merged=False), stdin gets its own FileInstance separate from stdout.

Definition at line 145 of file test_integration_writes.py.

◆ test_start_logging_merged_writes()

None tests.test_integration_writes.test_start_logging_merged_writes ( Path tmp_path)

Definition at line 101 of file test_integration_writes.py.

◆ test_start_logging_split_writes()

None tests.test_integration_writes.test_start_logging_split_writes ( Path tmp_path)

Definition at line 64 of file test_integration_writes.py.