Bump log_system version to 1.5.7; conditionally resolve use_colors from env/config

This commit is contained in:
Dariusz L
2026-06-30 06:00:21 +02:00
parent 5301bbbb6d
commit a04c294c55
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
"""
@author: Azornes
@title: AzLogs
@version: 1.5.6
@version: 1.5.7
@description: Logging Configuration
"""
# Log level for development.
+6 -2
View File
@@ -1,7 +1,7 @@
"""
@author: Azornes
@title: AzLogs
@version: 1.5.6
@version: 1.5.7
@description: Logging Initializator
"""
# ruff: noqa: T201
@@ -44,7 +44,11 @@ try:
{
"log_to_file": True,
"log_dir": os.path.join(os.path.dirname(os.path.abspath(__file__)), "logs"),
"use_colors": USE_COLORS,
"use_colors": (
logger.config["use_colors"]
if "AZLOGS_USE_COLORS" in os.environ
else USE_COLORS
),
}
)
+1 -1
View File
@@ -1,7 +1,7 @@
"""
@author: Azornes
@title: AzLogs
@version: 1.5.6
@version: 1.5.7
@description: Logging Setup - Central logging system
Features: