forked from asterisk/testsuite
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogger.conf
36 lines (29 loc) · 747 Bytes
/
logger.conf
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
#
# Logger configuration for python tests
#
[loggers]
keys=root
[handlers]
keys=stdout,normalFile
[formatters]
keys=default
# Logger definitions. If additional logging handlers are desired,
# they can be configured below this section.
[logger_root]
level=NOTSET
handlers=stdout,normalFile
[handler_stdout]
class=StreamHandler
level=WARN
formatter=default
args=(sys.stdout,)
[handler_normalFile]
class=handlers.RotatingFileHandler
level=INFO
formatter=default
args=('./logs/messages.txt', 'a', 67108864, 5)
# Formatter definitions for handlers defined in this configuration file
[formatter_default]
format=[%(asctime)s] %(levelname)s[%(process)d]: %(name)s:%(lineno)d %(funcName)s: %(message)s
datefmt=%b %d %H:%M:%S
class=logging.Formatter