-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlogger_config.yaml
57 lines (48 loc) · 1.06 KB
/
logger_config.yaml
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
53
54
55
56
57
#
# SPDX-FileCopyrightText: 2022 MCODING, LLC
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
#
version: 1
disable_existing_loggers: false
formatters:
default:
format: '%(asctime)s: [%(levelname)s|%(module)s]: %(message)s'
datefmt: '%Y-%m-%dT%H:%M:%S%z'
json:
(): context_chat_backend.logger.JSONFormatter
fmt_keys:
timestamp: timestamp
level: levelname
logger: name
message: message
filename: filename
function: funcName
line: lineno
thread_name: threadName
pid: process
handlers:
stderr:
class: logging.StreamHandler
level: WARNING
formatter: default
stream: ext://sys.stderr
file_json:
class: logging.handlers.RotatingFileHandler
level: DEBUG
formatter: json
filename: logs/ccb.log
maxBytes: 20971520
backupCount: 10
loggers:
root:
level: WARNING
handlers:
- stderr
- file_json
ccb:
level: DEBUG
handlers:
- stderr
- file_json
propagate: false