Line 8... |
Line 8... |
8 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
8 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
9 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
9 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
10 |
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
|
10 |
* @copyright Copyright (c) 2009, Tela Botanica (accueil@tela-botanica.org)
|
11 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
11 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
12 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
12 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
13 |
* @version $Id: Log.php 241 2010-12-06 15:19:07Z jpm $
|
13 |
* @version $Id: Log.php 255 2010-12-23 10:37:30Z jpm $
|
14 |
* @link /doc/framework/
|
14 |
* @link /doc/framework/
|
15 |
*/
|
15 |
*/
|
16 |
class Log {
|
16 |
class Log {
|
Line 17... |
Line 17... |
17 |
|
17 |
|
Line 56... |
Line 56... |
56 |
|
56 |
|
57 |
/** Configure le Log à partir des paramêtres de config. */
|
57 |
/** Configure le Log à partir des paramêtres de config. */
|
58 |
public static function configurer() {
|
58 |
public static function configurer() {
|
59 |
Config::verifierPresenceParametres(self::$parametres_obligatoires);
|
59 |
Config::verifierPresenceParametres(self::$parametres_obligatoires);
|
60 |
self::$cheminLogs = Config::get('chemin_logs');
|
60 |
self::$cheminLogs = Config::get('chemin_logs');
|
61 |
self::$timeZone = Config::get('i18n_timezone');
|
61 |
self::$timeZone = (Config::get('i18n_timezone') != '') ? Config::get('i18n_timezone') : self::$timeZone;
|
62 |
self::$tailleMax = Config::get('fw_taille_max_logs');
|
62 |
self::$tailleMax = (Config::get('fw_taille_max_logs') != '') ? Config::get('fw_taille_max_logs') : self::$tailleMax;
|
63 |
self::$logger = Config::get('fw_log_debogage');
|
63 |
self::$logger = (Config::get('fw_log_debogage') != '') ? Config::get('fw_log_debogage') : self::$logger;
|
64 |
self::initialiser();
|
64 |
self::initialiser();
|
Line 65... |
Line 65... |
65 |
}
|
65 |
}
|
66 |
|
66 |
|