instruktai-python-logger 0.4.4__tar.gz → 0.4.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/PKG-INFO +1 -1
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/install.py +14 -3
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/PKG-INFO +1 -1
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/pyproject.toml +1 -1
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/README.md +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/__init__.py +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/cli.py +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/logging.py +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/py.typed +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/SOURCES.txt +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/dependency_links.txt +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/entry_points.txt +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/requires.txt +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/top_level.txt +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/setup.cfg +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_cli_follow.py +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_configure_logging.py +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_log_aggregation.py +0 -0
- {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_trace_logging.py +0 -0
{instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/install.py
RENAMED
|
@@ -16,17 +16,28 @@ def _write_file(path: Path, content: str, *, force: bool) -> None:
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
def _install_newsyslog(log_root: Path, *, force: bool) -> Path:
|
|
19
|
+
"""Install a glob-based newsyslog rule covering every app's *.log file.
|
|
20
|
+
|
|
21
|
+
Format: path owner:group mode count size(KB) when flags
|
|
22
|
+
Defaults: 50 MB rotation, 5 archives, gzip-compress archives (Z flag).
|
|
23
|
+
"""
|
|
19
24
|
conf_path = Path("/etc/newsyslog.d/instrukt-ai.conf")
|
|
20
|
-
line = f"{log_root}/" + "*/*.log 640
|
|
25
|
+
line = f"{log_root}/" + "*/*.log 640 5 50000 * Z\n"
|
|
21
26
|
_write_file(conf_path, line, force=force)
|
|
22
27
|
return conf_path
|
|
23
28
|
|
|
24
29
|
|
|
25
30
|
def _install_logrotate(log_root: Path, *, force: bool) -> Path:
|
|
31
|
+
"""Install a glob-based logrotate rule covering every app's *.log file.
|
|
32
|
+
|
|
33
|
+
Defaults: 50 MB rotation, 5 archives, gzip-compress archives.
|
|
34
|
+
"""
|
|
26
35
|
conf_path = Path("/etc/logrotate.d/instrukt-ai")
|
|
27
36
|
content = f"""{log_root}/*/*.log {{
|
|
28
|
-
size
|
|
29
|
-
rotate
|
|
37
|
+
size 50M
|
|
38
|
+
rotate 5
|
|
39
|
+
compress
|
|
40
|
+
delaycompress
|
|
30
41
|
missingok
|
|
31
42
|
notifempty
|
|
32
43
|
copytruncate
|
|
File without changes
|
{instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/__init__.py
RENAMED
|
File without changes
|
{instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/cli.py
RENAMED
|
File without changes
|
{instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/logging.py
RENAMED
|
File without changes
|
{instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_configure_logging.py
RENAMED
|
File without changes
|
{instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_log_aggregation.py
RENAMED
|
File without changes
|
{instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_trace_logging.py
RENAMED
|
File without changes
|