mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
Chore: serialize logs for filesystem
This commit is contained in:
parent
6c7890be28
commit
08d1e544ec
1 changed files with 3 additions and 2 deletions
|
|
@ -87,10 +87,11 @@ def setup_logging():
|
|||
|
||||
patched.add(
|
||||
actual_log_path,
|
||||
format=log_format,
|
||||
level=log_level,
|
||||
colorize=False, # No colors in file logs
|
||||
serialize=True, # Use JSON serialization for structured logs
|
||||
enqueue=True, # Thread-safe writing
|
||||
backtrace=True, # Include full traceback in exceptions
|
||||
diagnose=False, # Don't include local variables in traceback for security
|
||||
)
|
||||
else:
|
||||
# Console handler (existing behavior)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue