464 |
jpm |
1 |
<!DOCTYPE html>
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
5 |
<meta name="generator" content="ApiGen 2.8.0">
|
|
|
6 |
|
|
|
7 |
<title>Class Log | TBFramework - v0.4</title>
|
|
|
8 |
|
|
|
9 |
<script type="text/javascript" src="resources/combined.js?4205936287"></script>
|
|
|
10 |
<script type="text/javascript" src="elementlist.js?1964084359"></script>
|
|
|
11 |
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360">
|
|
|
12 |
|
|
|
13 |
</head>
|
|
|
14 |
|
|
|
15 |
<body>
|
|
|
16 |
<div id="left">
|
|
|
17 |
<div id="menu">
|
|
|
18 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
<div id="groups">
|
|
|
22 |
<h3>Packages</h3>
|
|
|
23 |
<ul>
|
|
|
24 |
<li class="active"><a href="package-Framework.html">Framework</a>
|
|
|
25 |
</li>
|
|
|
26 |
<li><a href="package-None.html">None</a>
|
|
|
27 |
</li>
|
|
|
28 |
<li><a href="package-PHP.html">PHP</a>
|
|
|
29 |
</li>
|
|
|
30 |
<li><a href="package-Utilitaire.html">Utilitaire</a>
|
|
|
31 |
</li>
|
|
|
32 |
</ul>
|
|
|
33 |
</div>
|
|
|
34 |
|
|
|
35 |
<hr>
|
|
|
36 |
|
|
|
37 |
|
|
|
38 |
<div id="elements">
|
|
|
39 |
<h3>Classes</h3>
|
|
|
40 |
<ul>
|
|
|
41 |
<li><a href="class-Bdd.html">Bdd</a></li>
|
|
|
42 |
<li><a href="class-Cache.html">Cache</a></li>
|
|
|
43 |
<li><a href="class-CacheSimple.html">CacheSimple</a></li>
|
|
|
44 |
<li><a href="class-Chronometre.html">Chronometre</a></li>
|
|
|
45 |
<li><a href="class-Cli.html">Cli</a></li>
|
|
|
46 |
<li><a href="class-Config.html">Config</a></li>
|
|
|
47 |
<li><a href="class-Controleur.html">Controleur</a></li>
|
|
|
48 |
<li><a href="class-Debug.html">Debug</a></li>
|
|
|
49 |
<li><a href="class-Framework.html">Framework</a></li>
|
|
|
50 |
<li><a href="class-GestionnaireException.html">GestionnaireException</a></li>
|
|
|
51 |
<li><a href="class-I18n.html">I18n</a></li>
|
|
|
52 |
<li class="active"><a href="class-Log.html">Log</a></li>
|
|
|
53 |
<li><a href="class-MonService.html">MonService</a></li>
|
|
|
54 |
<li><a href="class-Registre.html">Registre</a></li>
|
|
|
55 |
<li><a href="class-RestClient.html">RestClient</a></li>
|
|
|
56 |
<li><a href="class-RestServeur.html">RestServeur</a></li>
|
|
|
57 |
<li><a href="class-RestService.html">RestService</a></li>
|
|
|
58 |
<li><a href="class-Script.html">Script</a></li>
|
|
|
59 |
<li><a href="class-ServiceCacheFichier.html">ServiceCacheFichier</a></li>
|
|
|
60 |
<li><a href="class-ServiceCacheSimple.html">ServiceCacheSimple</a></li>
|
|
|
61 |
<li><a href="class-ServiceCacheSqlite.html">ServiceCacheSqlite</a></li>
|
|
|
62 |
<li><a href="class-SquelettePhp.html">SquelettePhp</a></li>
|
|
|
63 |
<li><a href="class-Url.html">Url</a></li>
|
|
|
64 |
</ul>
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
</div>
|
|
|
71 |
</div>
|
|
|
72 |
</div>
|
|
|
73 |
|
|
|
74 |
<div id="splitter"></div>
|
|
|
75 |
|
|
|
76 |
<div id="right">
|
|
|
77 |
<div id="rightInner">
|
|
|
78 |
<form id="search">
|
|
|
79 |
<input type="hidden" name="cx" value="">
|
|
|
80 |
<input type="hidden" name="ie" value="UTF-8">
|
|
|
81 |
<input type="text" name="q" class="text">
|
|
|
82 |
<input type="submit" value="Search">
|
|
|
83 |
</form>
|
|
|
84 |
|
|
|
85 |
<div id="navigation">
|
|
|
86 |
<ul>
|
|
|
87 |
<li>
|
|
|
88 |
<a href="index.html" title="Overview"><span>Overview</span></a>
|
|
|
89 |
</li>
|
|
|
90 |
<li>
|
|
|
91 |
<a href="package-Framework.html" title="Summary of Framework"><span>Package</span></a>
|
|
|
92 |
</li>
|
|
|
93 |
<li class="active">
|
|
|
94 |
<span>Class</span> </li>
|
|
|
95 |
</ul>
|
|
|
96 |
<ul>
|
|
|
97 |
<li>
|
|
|
98 |
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
|
|
|
99 |
</li>
|
|
|
100 |
<li>
|
|
|
101 |
<a href="deprecated.html" title="List of deprecated elements"><span>Deprecated</span></a>
|
|
|
102 |
</li>
|
|
|
103 |
<li>
|
|
|
104 |
<a href="todo.html" title="Todo list"><span>Todo</span></a>
|
|
|
105 |
</li>
|
|
|
106 |
</ul>
|
|
|
107 |
<ul>
|
|
|
108 |
</ul>
|
|
|
109 |
</div>
|
|
|
110 |
|
|
|
111 |
<div id="content" class="class">
|
|
|
112 |
<h1>Class Log</h1>
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
<div class="description">
|
|
|
116 |
|
|
|
117 |
<p>Classe permettant de logger des messages dans les fichier situés dans le
|
|
|
118 |
dossier de log.</p>
|
|
|
119 |
|
|
|
120 |
</div>
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
<div class="info">
|
|
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
<b>Package:</b> <a href="package-Framework.html">Framework</a><br>
|
|
|
135 |
|
|
|
136 |
<b>Category:</b>
|
|
|
137 |
PHP 5.2<br>
|
|
|
138 |
<b>Copyright:</b>
|
|
|
139 |
Copyright (c) 2009, Tela Botanica (<a
|
|
|
140 |
href="mailto:accueil@tela-botanica.org">accueil@<!-- -->tela-botanica.org</a>)<br>
|
|
|
141 |
<b>License:</b>
|
|
|
142 |
<a href="http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt">Licence CECILL</a><br>
|
|
|
143 |
<b>License:</b>
|
|
|
144 |
<a href="http://www.gnu.org/licenses/gpl.html">Licence GNU-GPL</a><br>
|
|
|
145 |
<b>Author:</b>
|
|
|
146 |
Aurélien PERONNET <<a
|
|
|
147 |
href="mailto:aurelien@tela-botanica.org">aurelien@<!-- -->tela-botanica.org</a>><br>
|
|
|
148 |
<b>Author:</b>
|
|
|
149 |
Jean-Pascal MILCENT <<a
|
|
|
150 |
href="mailto:jpm@tela-botanica.org">jpm@<!-- -->tela-botanica.org</a>><br>
|
|
|
151 |
<b>Version:</b>
|
|
|
152 |
$Id: Log.php 274 2010-12-28 15:37:22Z jpm $<br>
|
|
|
153 |
<b>Link:</b>
|
|
|
154 |
/doc/framework/<br>
|
|
|
155 |
<b>Located at</b> <a href="source-class-Log.html#3-148" title="Go to source code">framework/Log.php</a><br>
|
|
|
156 |
</div>
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
<table class="summary" id="methods">
|
|
|
161 |
<caption>Methods summary</caption>
|
|
|
162 |
<tr data-order="initialiser" id="_initialiser">
|
|
|
163 |
|
|
|
164 |
<td class="attributes"><code>
|
|
|
165 |
public static
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
</code>
|
|
|
169 |
</td>
|
|
|
170 |
|
|
|
171 |
<td class="name"><div>
|
|
|
172 |
<a class="anchor" href="#_initialiser">#</a>
|
|
|
173 |
<code><a href="source-class-Log.html#45-55" title="Go to source code">initialiser</a>( )</code>
|
|
|
174 |
|
|
|
175 |
<div class="description short">
|
|
|
176 |
|
|
|
177 |
<p>Initialiser les logs par défaut, sans tenir comptes des paramêtres de
|
|
|
178 |
config.</p>
|
|
|
179 |
|
|
|
180 |
</div>
|
|
|
181 |
|
|
|
182 |
<div class="description detailed hidden">
|
|
|
183 |
|
|
|
184 |
<p>Initialiser les logs par défaut, sans tenir comptes des paramêtres de
|
|
|
185 |
config.</p>
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
</div>
|
|
|
195 |
</div></td>
|
|
|
196 |
</tr>
|
|
|
197 |
<tr data-order="configurer" id="_configurer">
|
|
|
198 |
|
|
|
199 |
<td class="attributes"><code>
|
|
|
200 |
public static
|
|
|
201 |
|
|
|
202 |
|
|
|
203 |
</code>
|
|
|
204 |
</td>
|
|
|
205 |
|
|
|
206 |
<td class="name"><div>
|
|
|
207 |
<a class="anchor" href="#_configurer">#</a>
|
|
|
208 |
<code><a href="source-class-Log.html#57-65" title="Go to source code">configurer</a>( )</code>
|
|
|
209 |
|
|
|
210 |
<div class="description short">
|
|
|
211 |
|
|
|
212 |
<p>Configure le Log à partir des paramêtres de config.</p>
|
|
|
213 |
|
|
|
214 |
</div>
|
|
|
215 |
|
|
|
216 |
<div class="description detailed hidden">
|
|
|
217 |
|
|
|
218 |
<p>Configure le Log à partir des paramêtres de config.</p>
|
|
|
219 |
|
|
|
220 |
|
|
|
221 |
|
|
|
222 |
|
|
|
223 |
|
|
|
224 |
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
</div>
|
|
|
228 |
</div></td>
|
|
|
229 |
</tr>
|
|
|
230 |
<tr data-order="ajouterEntree" id="_ajouterEntree">
|
|
|
231 |
|
|
|
232 |
<td class="attributes"><code>
|
|
|
233 |
public static
|
|
|
234 |
|
|
|
235 |
|
|
|
236 |
</code>
|
|
|
237 |
</td>
|
|
|
238 |
|
|
|
239 |
<td class="name"><div>
|
|
|
240 |
<a class="anchor" href="#_ajouterEntree">#</a>
|
|
|
241 |
<code><a href="source-class-Log.html#67-82" title="Go to source code">ajouterEntree</a>( <span>string <var>$nomFichier</var></span>, <span>mixed <var>$entree</var></span>, <span>mixed <var>$mode</var> = <span class="php-quote">'a+'</span></span> )</code>
|
|
|
242 |
|
|
|
243 |
<div class="description short">
|
|
|
244 |
|
|
|
245 |
<p>Ajoute une entrée au log spécifié par le paramètre $nomFichier</p>
|
|
|
246 |
|
|
|
247 |
</div>
|
|
|
248 |
|
|
|
249 |
<div class="description detailed hidden">
|
|
|
250 |
|
|
|
251 |
<p>Ajoute une entrée au log spécifié par le paramètre $nomFichier</p>
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
<h4>Parameters</h4>
|
|
|
256 |
<div class="list"><dl>
|
|
|
257 |
<dt><var>$nomFichier</var></dt>
|
|
|
258 |
<dd><code>string</code><br>$nomFichier le nom du fichier dans lequel écrire</dd>
|
|
|
259 |
<dt><var>$entree</var></dt>
|
|
|
260 |
<dd></dd>
|
|
|
261 |
<dt><var>$mode</var></dt>
|
|
|
262 |
<dd></dd>
|
|
|
263 |
</dl></div>
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
|
|
|
267 |
|
|
|
268 |
|
|
|
269 |
</div>
|
|
|
270 |
</div></td>
|
|
|
271 |
</tr>
|
|
|
272 |
<tr data-order="viderLog" id="_viderLog">
|
|
|
273 |
|
|
|
274 |
<td class="attributes"><code>
|
|
|
275 |
public static
|
|
|
276 |
|
|
|
277 |
|
|
|
278 |
</code>
|
|
|
279 |
</td>
|
|
|
280 |
|
|
|
281 |
<td class="name"><div>
|
|
|
282 |
<a class="anchor" href="#_viderLog">#</a>
|
|
|
283 |
<code><a href="source-class-Log.html#84-90" title="Go to source code">viderLog</a>( <span>string <var>$nomFichier</var></span> )</code>
|
|
|
284 |
|
|
|
285 |
<div class="description short">
|
|
|
286 |
|
|
|
287 |
<p>Vide un fichier log indiqué</p>
|
|
|
288 |
|
|
|
289 |
</div>
|
|
|
290 |
|
|
|
291 |
<div class="description detailed hidden">
|
|
|
292 |
|
|
|
293 |
<p>Vide un fichier log indiqué</p>
|
|
|
294 |
|
|
|
295 |
|
|
|
296 |
|
|
|
297 |
<h4>Parameters</h4>
|
|
|
298 |
<div class="list"><dl>
|
|
|
299 |
<dt><var>$nomFichier</var></dt>
|
|
|
300 |
<dd><code>string</code><br>$nomFichier le nom du fichier à vider</dd>
|
|
|
301 |
</dl></div>
|
|
|
302 |
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
</div>
|
|
|
308 |
</div></td>
|
|
|
309 |
</tr>
|
|
|
310 |
<tr data-order="verifierOuvrirFichier" id="_verifierOuvrirFichier">
|
|
|
311 |
|
|
|
312 |
<td class="attributes"><code>
|
|
|
313 |
public static
|
|
|
314 |
boolean
|
|
|
315 |
|
|
|
316 |
</code>
|
|
|
317 |
</td>
|
|
|
318 |
|
|
|
319 |
<td class="name"><div>
|
|
|
320 |
<a class="anchor" href="#_verifierOuvrirFichier">#</a>
|
|
|
321 |
<code><a href="source-class-Log.html#92-112" title="Go to source code">verifierOuvrirFichier</a>( <span>string <var>$nomFichier</var></span>, <span>mixed <var>$mode</var></span> )</code>
|
|
|
322 |
|
|
|
323 |
<div class="description short">
|
|
|
324 |
|
|
|
325 |
<p>Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,
|
|
|
326 |
l'ouvre si nécessaire.</p>
|
|
|
327 |
|
|
|
328 |
</div>
|
|
|
329 |
|
|
|
330 |
<div class="description detailed hidden">
|
|
|
331 |
|
|
|
332 |
<p>Vérifie la présence d'un fichier dans le tableau, ses droits d'écriture,
|
|
|
333 |
l'ouvre si nécessaire.</p>
|
|
|
334 |
|
|
|
335 |
|
|
|
336 |
|
|
|
337 |
<h4>Parameters</h4>
|
|
|
338 |
<div class="list"><dl>
|
|
|
339 |
<dt><var>$nomFichier</var></dt>
|
|
|
340 |
<dd><code>string</code><br>$nomFichier le nom du fichier dont on doit vérifier la présence</dd>
|
|
|
341 |
<dt><var>$mode</var></dt>
|
|
|
342 |
<dd></dd>
|
|
|
343 |
</dl></div>
|
|
|
344 |
|
|
|
345 |
<h4>Returns</h4>
|
|
|
346 |
<div class="list">
|
|
|
347 |
<code>boolean</code><br>true si le fichier est ouvert ou maintenant accessible, false sinon<br>
|
|
|
348 |
</div>
|
|
|
349 |
|
|
|
350 |
|
|
|
351 |
|
|
|
352 |
|
|
|
353 |
</div>
|
|
|
354 |
</div></td>
|
|
|
355 |
</tr>
|
|
|
356 |
<tr data-order="__destruct" id="___destruct">
|
|
|
357 |
|
|
|
358 |
<td class="attributes"><code>
|
|
|
359 |
public
|
|
|
360 |
|
|
|
361 |
|
|
|
362 |
</code>
|
|
|
363 |
</td>
|
|
|
364 |
|
|
|
365 |
<td class="name"><div>
|
|
|
366 |
<a class="anchor" href="#___destruct">#</a>
|
|
|
367 |
<code><a href="source-class-Log.html#142-147" title="Go to source code">__destruct</a>( )</code>
|
|
|
368 |
|
|
|
369 |
<div class="description short">
|
|
|
370 |
|
|
|
371 |
<p>Destructeur de classe, ferme les descripteurs ouverts.</p>
|
|
|
372 |
|
|
|
373 |
</div>
|
|
|
374 |
|
|
|
375 |
<div class="description detailed hidden">
|
|
|
376 |
|
|
|
377 |
<p>Destructeur de classe, ferme les descripteurs ouverts.</p>
|
|
|
378 |
|
|
|
379 |
|
|
|
380 |
|
|
|
381 |
|
|
|
382 |
|
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
|
386 |
</div>
|
|
|
387 |
</div></td>
|
|
|
388 |
</tr>
|
|
|
389 |
</table>
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
|
|
|
393 |
|
|
|
394 |
|
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
|
|
|
400 |
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
|
|
|
405 |
|
|
|
406 |
|
|
|
407 |
|
|
|
408 |
</div>
|
|
|
409 |
|
|
|
410 |
<div id="footer">
|
|
|
411 |
TBFramework - v0.4 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
|
|
|
412 |
</div>
|
|
|
413 |
</div>
|
|
|
414 |
</div>
|
|
|
415 |
</body>
|
|
|
416 |
</html>
|