-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
33 lines (28 loc) · 1.04 KB
/
.env.example
File metadata and controls
33 lines (28 loc) · 1.04 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
# pythonlogs Environment Configuration
# Copy this file to .env and modify values as needed
# Main Settings
LOG_LEVEL=DEBUG
LOG_APPNAME=app
LOG_TIMEZONE=UTC
LOG_ENCODING=UTF-8
# File Settings
LOG_FILENAME=app.log
LOG_DIRECTORY=/app/logs
LOG_DAYS_TO_KEEP=30
LOG_DATE_FORMAT=%Y-%m-%dT%H:%M:%S
LOG_STREAM_HANDLER=True
LOG_SHOW_LOCATION=False
# Memory Management Settings
LOG_MAX_LOGGERS=50
LOG_MAX_FORMATTERS=50
LOG_LOGGER_TTL_SECONDS=1800
# SizeRotatingLog Settings (only needed when using SizeRotatingLog)
LOG_MAX_FILE_SIZE_MB=10
# TimedRotatingLog Settings (only needed when using TimedRotatingLog)
LOG_ROTATE_WHEN=midnight
LOG_ROTATE_FILE_SUFIX=%Y%m%d
# Available LOG_LEVEL values: DEBUG, INFO, WARNING, ERROR, CRITICAL
# Available LOG_TIMEZONE values: UTC, localtime, or any valid timezone (e.g., America/New_York)
# Available LOG_ROTATE_WHEN values: midnight, S, M, H, D, W0-W6, daily, hourly, weekly
# LOG_STREAM_HANDLER: Set to True to enable console output, False to disable
# LOG_SHOW_LOCATION: Set to True to include filename:function:line in log messages