-
Notifications
You must be signed in to change notification settings - Fork 240
/
player.default.ini
102 lines (90 loc) · 3.11 KB
/
player.default.ini
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# This is the default PyRDP Player configuration file.
# It should not be modified directly. Instead, copy the
# file to the system's user configuration directory
# to override the defaults.
#
# Configuration specified on the command line has
# precedence over configuration files.
#
# On most Linux distributions, this file should be in
#
# $HOME/.config/pyrdp/player.ini
#
# On Windows systems, the file should be in:
#
# %APPDATA%/pyrdp/player.ini
#
# On MacOS:
#
# ~/Library/Application Support/pyrdp/player.ini
#
# Subsections are delimited by the `:` character to avoid ambiguity with
# logger names (e.g. `pyrdp.player.ui`)
# This section defines global variables. Variables can be referenced
# by using the `$(vars:varname)` syntax.
#
# It should be possible to change all interesting aspects of the
# configuration through this section
#
[vars]
# The output directory where PyRDP will store various artifacts.
#
# This configures the base directory that PyRDP will use.
# It can be relative to the working directory from where PyRDP was
# started or an absolute path.
output_dir = pyrdp_output
# The directory to output logs to.
# This is a relative directory to the output directory
log_dir = logs
# Default log level.
level = INFO
# The default log format.
log_format_default = [{asctime}] - {levelname} - {name} - {message}
# -----------------------------------------------------------------
# The next section configures the PyRDP logging facilities.
#
# This uses the logging.config.dictConfig format and nested keys
# (`[handlers:stderr]`) should be in separate sections due to INI
# limitations.
# -----------------------------------------------------------------
[logs]
# Do not modify.
version = 1
# Filter logs to this logger.
# Accepts wildcards: `pyrdp.ui.*`
filter = pyrdp
# Enable notifications.
# This requires a supported operating system with libnotify-bin and a
# notification daemon.
notifications = True
# -----------------------------------------------------------------
# Loggers and Verbosity Levels
#
# To disable a logger, simply remove its `level = ...` line.
# Severity can be one of DEBUG, INFO, WARNING, ERROR or CRITICAL
# Levels can be customized per handler and logger.
# Note that PyRDP's `-L` switch affects the root logger.
# -----------------------------------------------------------------
[logs:loggers:pyrdp]
handlers = console, player
level = ${vars:level}
# -----------------------------------------------------------------
# WARNING:
#
# Do not edit the sections below unless you are sure of what you
# are doing. Some of the settings here are required for PyRDP to
# function properly and everything that users might want to
# modify is exposed as variables or in the sections above.
# -----------------------------------------------------------------
[logs:handlers:console]
class = logging.StreamHandler
formatter = default
stream = ext://sys.stderr
[logs:handlers:player]
class = logging.handlers.RotatingFileHandler
filename = ${vars:output_dir}/${vars:log_dir}/player.log
formatter = default
[logs:formatters:default]
class: logging.Formatter
format = ${vars:log_format_default}
style = {