-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcustom.yaml
More file actions
52 lines (52 loc) · 1.64 KB
/
custom.yaml
File metadata and controls
52 lines (52 loc) · 1.64 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
50
51
52
# See https://hydra.cc/docs/configure_hydra/logging/
#
# DEPRECATED: This hydra job_logging configuration is deprecated.
# Use the Logging module instead for programmatic logging configuration:
#
# modules:
# logging:
# _target_: csp_gateway.server.modules.logging.Logging
# console_level: INFO
# file_level: DEBUG
# use_colors: true
# logger_levels:
# uvicorn.error: CRITICAL
#
# The Logging module provides the same defaults as this file but with
# a consistent pattern matching other observability modules like Logfire.
#
version: 1
disable_existing_loggers: False
formatters:
simple:
format: '[%(asctime)s][%(threadName)s][%(name)s][%(levelname)s]: %(message)s'
colorlog:
'()': 'colorlog.ColoredFormatter'
format: '[%(cyan)s%(asctime)s%(reset)s][%(threadName)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s]: %(message)s'
log_colors:
DEBUG: purple
INFO: green
WARNING: yellow
ERROR: red
CRITICAL: red
whenAndWhere:
format: '[%(asctime)s][%(threadName)s][%(name)s][%(filename)s:%(lineno)s][%(levelname)s]: %(message)s'
handlers:
console:
level: INFO
class: logging.StreamHandler
formatter: colorlog
stream: ext://sys.stdout
file:
level: DEBUG
class: csp_gateway.server.shared.symlink_file_handler.SymlinkFileHandler
formatter: whenAndWhere
filename: ${hydra.runtime.output_dir}/csp-gateway.log
log_links_dir: ${hydra.runtime.cwd}/${hydra.job.name}_log_links
symlink_filename: ${hydra.job.name}_${now:%Y%m%d_%H%M%S}.log
root:
handlers: [console, file]
level: DEBUG
loggers:
uvicorn.error:
level: CRITICAL