Projekt

Obecné

Profil

Stáhnout (1.73 KB) Statistiky
| Větev: | Tag: | Revize:
1 22c09a00 silhavyj
# This file is the logger configuration file.
2
# ==========================================
3
4 0b96f10c Pultak
[loggers]
5 22c09a00 silhavyj
# Name of the logger.
6 0b96f10c Pultak
keys=root
7
8 22c09a00 silhavyj
# ==========================================
9
10 0b96f10c Pultak
[handlers]
11 22c09a00 silhavyj
# List of different types of handlers defined within the application.
12
keys=consoleHandler, logFileHandler
13
14
# ==========================================
15 0b96f10c Pultak
16
[formatters]
17 22c09a00 silhavyj
# Name of the formatter used for the log messages.
18 0b96f10c Pultak
keys=simpleFormatter
19
20 22c09a00 silhavyj
# ==========================================
21
22 0b96f10c Pultak
[logger_root]
23 22c09a00 silhavyj
# Level of debugging set for the root logger.
24 0b96f10c Pultak
level=DEBUG
25 22c09a00 silhavyj
26
# Handler set for the root logger.
27 0b96f10c Pultak
handlers=consoleHandler
28
29 22c09a00 silhavyj
# ==========================================
30
31 0b96f10c Pultak
[handler_consoleHandler]
32 22c09a00 silhavyj
# Class used for the console logger.
33 0b96f10c Pultak
class=StreamHandler
34 22c09a00 silhavyj
35
# Level of debugging set for the console logger.
36 0b96f10c Pultak
level=DEBUG
37 22c09a00 silhavyj
38
# Formatter used for for the console logger.
39 0b96f10c Pultak
formatter=simpleFormatter
40 22c09a00 silhavyj
41
# Arguments passed in upon instantiating the logger.
42 0b96f10c Pultak
args=(sys.stdout,)
43
44 22c09a00 silhavyj
# ==========================================
45
46 0b96f10c Pultak
[handler_logFileHandler]
47 22c09a00 silhavyj
# Class used for the file logger - rotating file.
48 0b96f10c Pultak
class=handlers.RotatingFileHandler
49 22c09a00 silhavyj
50
# Level of debugging set for the file logger.
51 0b96f10c Pultak
level=NOTSET
52 22c09a00 silhavyj
53
# Arguments passed in when instantiating the logger.
54
# log_file.log - name of the rotating log file
55
# a            - append to the file - do not overwrite it
56
# 10485760     - maximum size of the file - 10 MB
57
# 1            - number of backups kept on the disk
58 731a638d silhavyj
args=('log_file.log', 'a', 10485760, 1)
59 22c09a00 silhavyj
60
# Formatter used for the file logger.
61 0b96f10c Pultak
formatter=simpleFormatter
62
63 22c09a00 silhavyj
# ==========================================
64
65 0b96f10c Pultak
[formatter_simpleFormatter]
66 22c09a00 silhavyj
# Definition of a custom log formatter. All log
67
# messages have the following format: [datetime] - [level] - [message]
68 0b96f10c Pultak
format=%(asctime)s - %(levelname)s - %(message)s