jdxi_editor.log_files
The session logs: one file per start, kept for LOG_KEEP_DAYS days, and the level chosen in Preferences.
From JD-Xi Studio 73f9d4ba.
Attributes
Functions
|
Directory Decologr writes the log files to. |
|
Delete the session logs older than days days; returns how many were deleted. |
|
The level in Preferences (a number; a name is read too; anything else -> DEBUG). |
|
Write only the lines from level up (the program's loggers, the root and their handlers). |
Module Contents
- jdxi_editor.log_files.log_dir(home: pathlib.Path | None = None) pathlib.Path[source]
Directory Decologr writes the log files to.
- jdxi_editor.log_files.prune_logs(folder: pathlib.Path | None = None, days: int = LOG_KEEP_DAYS, now: float | None = None) int[source]
Delete the session logs older than days days; returns how many were deleted.