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.
Files changed (19) hide show
  1. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/PKG-INFO +1 -1
  2. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/install.py +14 -3
  3. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/PKG-INFO +1 -1
  4. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/pyproject.toml +1 -1
  5. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/README.md +0 -0
  6. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/__init__.py +0 -0
  7. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/cli.py +0 -0
  8. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/logging.py +0 -0
  9. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instrukt_ai_logging/py.typed +0 -0
  10. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/SOURCES.txt +0 -0
  11. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/dependency_links.txt +0 -0
  12. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/entry_points.txt +0 -0
  13. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/requires.txt +0 -0
  14. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/instruktai_python_logger.egg-info/top_level.txt +0 -0
  15. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/setup.cfg +0 -0
  16. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_cli_follow.py +0 -0
  17. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_configure_logging.py +0 -0
  18. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_log_aggregation.py +0 -0
  19. {instruktai_python_logger-0.4.4 → instruktai_python_logger-0.4.5}/tests/test_trace_logging.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: instruktai-python-logger
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: Centralized logging utilities for Python services.
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -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 10 100000 * N\n"
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 100M
29
- rotate 10
37
+ size 50M
38
+ rotate 5
39
+ compress
40
+ delaycompress
30
41
  missingok
31
42
  notifempty
32
43
  copytruncate
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: instruktai-python-logger
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: Centralized logging utilities for Python services.
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "instruktai-python-logger"
7
- version = "0.4.4"
7
+ version = "0.4.5"
8
8
  description = "Centralized logging utilities for Python services."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"