Métodos públicos estáticos | |
| static | initialize ($name='') |
| static | set_path ($path) |
| static | get_path () |
| static | log ($type='DEBUG', $msg, $name_log) |
| static | begin () |
| static | rollback () |
| static | commit () |
| static | close () |
| static | warning ($msg, $name_log='') |
| static | error ($msg, $name_log='') |
| static | debug ($msg, $name_log='') |
| static | alert ($msg, $name_log='') |
| static | critical ($msg, $name_log='') |
| static | notice ($msg, $name_log='') |
| static | info ($msg, $name_log='') |
| static | emergence ($msg, $name_log='') |
| static | custom ($type='CUSTOM', $msg, $name_log='') |
$fileLogger = Es el File Handle para escribir los logs $transaction = Indica si hay o no transaccion $quenue = array con lista de logs pendientes
Ej: //Empieza un log en logs/logDDMMYY.txt
Logger::debug('Loggear esto como un debug');
//Esto se guarda al log inmediatamente Logger::error('Loggear esto como un error');
//Inicia una transacción Logger::begin();
//Esto queda pendiente hasta que se llame a commit para guardar //ó rollback para cancelar Logger::warning('Esto es un log en la fila'); Logger::notice('Esto es un otro log en la fila');
//Se guarda al log Logger::commit();
//Cierra el Log Logger::close();
Definición en la línea 55 del archivo logger.php.
| static alert | ( | $ | msg, | |
| $ | name_log = '' | |||
| ) | [static] |
Genera un log de tipo ALERT
| string | $msg | |
| string | $name_log |
Definición en la línea 232 del archivo logger.php.
| static begin | ( | ) | [static] |
Inicia una transacción
Definición en la línea 154 del archivo logger.php.
| static close | ( | ) | [static] |
Cierra el Logger
Definición en la línea 184 del archivo logger.php.
| static commit | ( | ) | [static] |
Commit a una transacción
Definición en la línea 172 del archivo logger.php.
| static critical | ( | $ | msg, | |
| $ | name_log = '' | |||
| ) | [static] |
Genera un log de tipo CRITICAL
| string | $msg | |
| string | $name_log |
Definición en la línea 243 del archivo logger.php.
| static custom | ( | $ | type = 'CUSTOM', |
|
| $ | msg, | |||
| $ | name_log = '' | |||
| ) | [static] |
Genera un log Personalizado
| string | $type | |
| string | $msg | |
| string | $name_log |
Definición en la línea 287 del archivo logger.php.
| static debug | ( | $ | msg, | |
| $ | name_log = '' | |||
| ) | [static] |
Genera un log de tipo DEBUG
| string | $msg | |
| string | $name_log |
Definición en la línea 221 del archivo logger.php.
| static emergence | ( | $ | msg, | |
| $ | name_log = '' | |||
| ) | [static] |
Genera un log de tipo EMERGENCE
| string | $msg | |
| string | $name_log |
Definición en la línea 276 del archivo logger.php.
| static error | ( | $ | msg, | |
| $ | name_log = '' | |||
| ) | [static] |
Genera un log de tipo ERROR
| string | $msg | |
| string | $name_log |
Definición en la línea 210 del archivo logger.php.
| static get_path | ( | ) | [static] |
| static info | ( | $ | msg, | |
| $ | name_log = '' | |||
| ) | [static] |
Genera un log de tipo INFO
| string | $msg | |
| string | $name_log |
Definición en la línea 265 del archivo logger.php.
| static initialize | ( | $ | name = '' |
) | [static] |
Inicializa el Logger
Definición en la línea 92 del archivo logger.php.
| static log | ( | $ | type = 'DEBUG', |
|
| $ | msg, | |||
| $ | name_log | |||
| ) | [static] |
Almacena un mensaje en el log
| string | $type | |
| string | $msg | |
| string | $name_log |
Definición en la línea 132 del archivo logger.php.
| static notice | ( | $ | msg, | |
| $ | name_log = '' | |||
| ) | [static] |
Genera un log de tipo NOTICE
| string | $msg | |
| string | $name_log |
Definición en la línea 254 del archivo logger.php.
| static rollback | ( | ) | [static] |
Deshace una transacción
Definición en la línea 163 del archivo logger.php.
| static set_path | ( | $ | path | ) | [static] |
Especifica el PATH donde se guardan los logs
| string | $path |
Definición en la línea 109 del archivo logger.php.
| static warning | ( | $ | msg, | |
| $ | name_log = '' | |||
| ) | [static] |
Genera un log de tipo WARNING
| string | $msg | |
| string | $name_log |
Definición en la línea 198 del archivo logger.php.
1.5.8