-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogging_config.yaml
More file actions
49 lines (40 loc) · 1.45 KB
/
logging_config.yaml
File metadata and controls
49 lines (40 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Logging Configuration for Image2Code
# This file defines how loguru should handle logging across the application
#
# Environment variables override these settings:
# - LOG_LEVEL: Debug/Info/Warning/Error/Critical (default: INFO)
# - LOG_FORMAT: plain or json (default: plain)
# - LOG_DIRECTORY: Path to logs directory (default: logs)
# - ENVIRONMENT: dev/prod/debug (default: dev)
version: 1
disable_existing_loggers: false
# Environment: dev, prod, or debug
# In dev/debug: logs also appear in console
# In prod: logs only go to files
environment: dev
# Where to store log files
log_directory: logs
# Logging level: TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL
log_level: DEBUG
# Log format: 'plain' (human-readable) or 'json' (machine-parseable)
# plain: Suitable for development and debugging
# json: Suitable for production and log aggregation systems
log_format: plain
# Rotation policy for log files
rotation:
# Type: daily or size
# daily: Rotate at midnight (new file each day)
# size: Rotate when file reaches specified size
type: daily
# Size-based rotation (only used if type: size)
size: 100 MB
# Retention: how long to keep old logs
# all: Keep all log files (no deletion)
# <number>: Keep logs for specified duration (e.g., "7 days", "4 weeks")
retention: all
# Module-specific log levels (optional)
# Uncomment to set custom levels for specific modules
# module_levels:
# extractor: DEBUG
# ordering: ERROR
# reconstruction: INFO