-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
logging.cfg
195 lines (166 loc) · 3.65 KB
/
logging.cfg
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
#textdomain wesnoth-lib
###
### Definition of the window to select logging options.
### These first six strings match the names from logging.cpp
###
#define _NAME
"label"#enddef
#define _DEBUG
"debug"#enddef
#define _INFO
"info"#enddef
#define _WARN
"warn"#enddef
#define _ERR
"err"#enddef
#define _NONE
"none"#enddef
#define _GUI_LOGGER_RADIOS GROUP TOOLTIP
[column]
grow_factor = 0
border = "all"
border_size = 5
[toggle_button]
id = {GROUP}
definition = "radio"
linked_group = {GROUP}
tooltip = {TOOLTIP}
[/toggle_button]
[/column]
#enddef
[window]
id = "log_settings"
description = "Advanced options to control how much information is printed to console."
[resolution]
definition = "default"
automatic_placement = true
vertical_placement = "center"
horizontal_placement = "center"
[linked_group]
id = {_NAME}
fixed_width = true
[/linked_group]
[linked_group]
id = {_DEBUG}
fixed_width = true
[/linked_group]
[linked_group]
id = {_INFO}
fixed_width = true
[/linked_group]
[linked_group]
id = {_WARN}
fixed_width = true
[/linked_group]
[linked_group]
id = {_ERR}
fixed_width = true
[/linked_group]
[linked_group]
id = {_NONE}
fixed_width = true
[/linked_group]
[tooltip]
id = "tooltip"
[/tooltip]
[helptip]
id = "tooltip"
[/helptip]
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "title"
label = _ "Logging Options"
[/label]
[/column]
[/row]
[row]
grow_factor = 1
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
vertical_grow = true
[listbox]
id = "logger_listbox"
definition = "default"
horizontal_scrollbar_mode = "never"
[list_definition]
[row]
[column]
vertical_grow = true
horizontal_grow = true
[toggle_panel]
definition = "default"
[grid]
[row]
[column]
grow_factor = 1
horizontal_alignment = "right"
border = "all"
border_size = 5
[label]
id = {_NAME}
definition = "default"
linked_group = {_NAME}
[/label]
[/column]
{_GUI_LOGGER_RADIOS {_DEBUG} ( _ "Debug level logging: maximum information")}
{_GUI_LOGGER_RADIOS {_INFO} ( _ "Info level logging: more information")}
{_GUI_LOGGER_RADIOS {_WARN} ( _ "Warning level logging: less information")}
{_GUI_LOGGER_RADIOS {_ERR} ( _ "Error level logging: minimum information")}
{_GUI_LOGGER_RADIOS {_NONE} ( _ "Disable logging")}
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_alignment = "right"
[grid]
[row]
grow_factor = 0
[column]
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "ok"
definition = "default"
label = _ "OK"
[/button]
[/column]
[column]
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "cancel"
definition = "default"
label = _ "Cancel"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]
[/window]
#undef _GUI_LOGGER_RADIOS
#undef _NAME
#undef _DEBUG
#undef _INFO
#undef _WARN
#undef _ERR