-
Notifications
You must be signed in to change notification settings - Fork 3
/
exportword0127
341 lines (311 loc) · 10.9 KB
/
exportword0127
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
Message-ID: <2014679019.3334.1485852749725.JavaMail.confluence@ip-10-127-227-164>
Subject: Exported From Confluence
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_3333_220609495.1485852749724"
------=_Part_3333_220609495.1485852749724
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/exported.html
<html xmlns:o=3D'urn:schemas-microsoft-com:office:office'
xmlns:w=3D'urn:schemas-microsoft-com:office:word'
xmlns:v=3D'urn:schemas-microsoft-com:vml'
xmlns=3D'urn:w3-org-ns:HTML'>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf-8=
">
<title>Logging & Debug configuration</title>
<!--[if gte mso 9]>
<xml>
<o:OfficeDocumentSettings>
<o:TargetScreenSize>1024x640</o:TargetScreenSize>
<o:PixelsPerInch>72</o:PixelsPerInch>
<o:AllowPNG/>
</o:OfficeDocumentSettings>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>90</w:Zoom>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
<![endif]-->
<style>
<!--
@page Section1 {
size: 8.5in 11.0in;
margin: 1.0in;
mso-header-margin: .5in;
mso-footer-margin: .5in;
mso-paper-source: 0;
}
td {
page-break-inside: avoid;
}
tr {
page-break-after: avoid;
}
div.Section1 {
page: Section1;
}
/* Confluence print stylesheet. Common to all themes for print medi=
a */
/* Full of !important until we improve batching for print CSS */
@media print {
#main {
padding-bottom: 1em !important; /* The default padding of 6em is to=
o much for printouts */
}
body {
font-family: Arial, Helvetica, FreeSans, sans-serif;
font-size: 10pt;
line-height: 1.2;
}
body, #full-height-container, #main, #page, #content, .has-personal-sid=
ebar #content {
background: #fff !important;
color: #000 !important;
border: 0 !important;
width: 100% !important;
height: auto !important;
min-height: auto !important;
margin: 0 !important;
padding: 0 !important;
display: block !important;
}
a, a:link, a:visited, a:focus, a:hover, a:active {
color: #000;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
font-family: Arial, Helvetica, FreeSans, sans-serif;
page-break-after: avoid;
}
pre {
font-family: Monaco, "Courier New", monospace;
}
#header,
.aui-header-inner,
#navigation,
#sidebar,
.sidebar,
#personal-info-sidebar,
.ia-fixed-sidebar,
.page-actions,
.navmenu,
.ajs-menu-bar,
.noprint,
.inline-control-link,
.inline-control-link a,
a.show-labels-editor,
.global-comment-actions,
.comment-actions,
.quick-comment-container,
#addcomment {
display: none !important;
}
.comment .date::before {
content: none !important; /* remove middot for print view */
}
h1.pagetitle img {
height: auto;
width: auto;
}
.print-only {
display: block;
}
#footer {
position: relative !important; /* CONF-17506 Place the footer at en=
d of the content */
margin: 0;
padding: 0;
background: none;
clear: both;
}
#poweredby {
border-top: none;
background: none;
}
#poweredby li.print-only {
display: list-item;
font-style: italic;
}
#poweredby li.noprint {
display: none;
}
/* no width controls in print */
.wiki-content .table-wrap,
.wiki-content p,
.panel .codeContent,
.panel .codeContent pre,
.image-wrap {
overflow: visible !important;
}
/* TODO - should this work? */
#children-section,
#comments-section .comment,
#comments-section .comment .comment-body,
#comments-section .comment .comment-content,
#comments-section .comment p {
page-break-inside: avoid;
}
#page-children a {
text-decoration: none;
}
/**
hide twixies
the specificity here is a hack because print styles
are getting loaded before the base styles. */
#comments-section.pageSection .section-header,
#comments-section.pageSection .section-title,
#children-section.pageSection .section-header,
#children-section.pageSection .section-title,
.children-show-hide {
padding-left: 0;
margin-left: 0;
}
.children-show-hide.icon {
display: none;
}
/* personal sidebar */
.has-personal-sidebar #content {
margin-right: 0px;
}
.has-personal-sidebar #content .pageSection {
margin-right: 0px;
}
}
-->
</style>
</head>
<body>
<h1>Logging & Debug configuration</h1>
<div class=3D"Section1">
<p><style type=3D"text/css">/*<![CDATA[*/
div.rbtoc1485852749700 {padding: 0px;}
div.rbtoc1485852749700 ul {list-style: disc;margin-left: 0px;}
div.rbtoc1485852749700 li {margin-left: 0px;padding-left: 0px;}
/*]]>*/</style></p>
<div class=3D"toc-macro rbtoc1485852749700">=20
<ul class=3D"toc-indentation">=20
<li><a href=3D"#Logging&Debugconfiguration-Introduction">Introduction</=
a></li>=20
<li><a href=3D"#Logging&Debugconfiguration-Debuggingindevenvironment">D=
ebugging in dev environment</a>=20
<ul class=3D"toc-indentation">=20
<li><a href=3D"#Logging&Debugconfiguration-Reducingmemoryuse">Reducing =
memory use</a></li>=20
</ul> </li>=20
<li><a href=3D"#Logging&Debugconfiguration-Errorloggingandrotation">Err=
or logging and rotation</a></li>=20
</ul>=20
</div>
<p></p>
<h2 id=3D"Logging&Debugconfiguration-Introduction">Introduction</h2>
<p>Logging in eZ Platform consists of two parts, several debug systems that=
integrates with symfony developer toolbar to give you detailed information=
about what is going on. And standard <a href=3D"https://github.com/ph=
p-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md" class=
=3D"external-link" rel=3D"nofollow">PSR-3</a> logger, as provided by S=
ymfony using <a href=3D"https://github.com/Seldaek/monolog" class=3D"extern=
al-link" rel=3D"nofollow">Monolog</a>.</p>
<h2 id=3D"Logging&Debugconfiguration-Debuggingindevenvironment">Debuggi=
ng in dev environment</h2>
<p><span class=3D"inline-comment-marker" data-ref=3D"8007cf13-b3c4-4337-9c2=
e-cb29cb12071f">When using the Symfo</span>ny dev <a href=3D"/display/TECHD=
OC/Using+environments">environment</a>, the system out of the box tracks ad=
ditional metrics for you to be able to debug issues, this includes&nbs=
p;<a class=3D"external-link" href=3D"http://stash.tedivm.com/" rel=3D"nofol=
low">Stash</a> cache use <em>(done by <a class=3D"external-link" =
href=3D"https://github.com/tedivm/TedivmStashBundle" rel=3D"nofollow">Stash=
Bundle</a>)</em>, and a <a href=3D"/display/TECHDOC/Persistence+cache+=
configuration">persistence cache</a> use.</p>
<h3 id=3D"Logging&Debugconfiguration-Reducingmemoryuse">Reducing memory=
use</h3>
<div class=3D"confluence-information-macro confluence-information-macro-tip=
">
<span class=3D"aui-icon aui-icon-small aui-iconfont-approve confluence-info=
rmation-macro-icon"></span>
<div class=3D"confluence-information-macro-body">
<p>For long running scripts, instead head over to <a href=3D"/display/TECHD=
OC/How+to+run+long-running+console+commands">How to run long-running consol=
e commands</a> for some much more relevant info.</p>
</div>
</div>
<p>If you are running out of memory and don't need to keep track of cache h=
its and misses. Then StashBundle tracking, represented by the <code st=
yle=3D"line-height: 1.42857;">stash.tracking</code> setting, and persi=
stence cache logging, represented by the setting <code style=3D"line-height=
: 1.42857;">parameters.ezpublish.spi.persistence.cache.persistenceLogger.en=
ableCallLogging</code>, can optionally be disabled.</p>
<p> </p>
<div class=3D"code panel pdl" style=3D"border-width: 1px;">
<div class=3D"codeHeader panelHeader pdl" style=3D"border-bottom-width: 1px=
;">
<b>config_dev.yml</b>
</div>
<div class=3D"codeContent panelContent pdl">=20
<pre class=3D"brush: php; gutter: false; theme: Eclipse" style=3D"font-size=
:12px;">stash:
tracking: false # Default is true in dev
tracking_values: false # Default is false in dev, to only tra=
ck cache keys not values
caches:
default:
inMemory: false # Default is true
registerDoctrineAdapter: false
parameters:
ezpublish.spi.persistence.cache.persistenceLogger.enableCallLogging: fa=
lse</pre>=20
</div>
</div>
<h2 id=3D"Logging&Debugconfiguration-Errorloggingandrotation">Error log=
ging and rotation</h2>
<p>eZ Platform uses the Monolog component to log errors, and it has a <code=
>RotatingFileHandler</code> that allows for file rotation.</p>
<p>According to their documentation, it "logs records to a file and creates=
one logfile per day. It will also delete files older than <code>$maxFiles<=
/code>".</p>
<p>But then, their own recommendation is to use "<code>logrotate</code>" in=
stead of doing the rotation in the handler as you would have better perform=
ance.</p>
<p> </p>
<div class=3D"confluence-information-macro confluence-information-macro-inf=
ormation">
<span class=3D"aui-icon aui-icon-small aui-iconfont-info confluence-informa=
tion-macro-icon"></span>
<div class=3D"confluence-information-macro-body">
<p>More details here:</p>
<ul>
<li><a href=3D"https://github.com/Seldaek/monolog" class=3D"external-link" =
rel=3D"nofollow">https://github.com/Seldaek/monolog</a></li>
<li><a href=3D"http://linuxcommand.org/man_pages/logrotate8.html" class=3D"=
external-link" rel=3D"nofollow">http://linuxcommand.org/man_pages/logrotate=
8.html</a></li>
</ul>
</div>
</div>
<p> </p>
<p>If you decided to use Monolog's handler, it can be configured in <code>a=
pp/config/config.yml</code></p>
<div class=3D"code panel pdl" style=3D"border-width: 1px;">
<div class=3D"codeContent panelContent pdl">=20
<pre class=3D"brush: php; gutter: false; theme: Eclipse" style=3D"font-size=
:12px;">monolog:
handlers:
main:
type: rotating_file
max_files: 10
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug</pre>=20
</div>
</div>
<p> </p>
<p> </p>
</div>
</body>
</html>
------=_Part_3333_220609495.1485852749724--