setLevel() setLevel(int $level) change the debug level. Use Tlog constant : \Thelia\Log\Tlog::DEBUG set level to Debug Parameters int $level
debug() debug(string $message, array $context) : null Detailed debug information. Parameters string $message array $context Returns null
addDebug() addDebug() Alias of debug method. With this method you can put all parameter you want ex : Tlog::getInstance()->addDebug($arg1, $arg2, $arg3);
info() info(string $message, array $context) : null Interesting events. Example: User logs in, SQL logs. Parameters string $message array $context Returns null
addInfo() addInfo() Alias of info method. With this method you can put all parameter you want ex : Tlog::getInstance()->addInfo($arg1, $arg2, $arg3);
notice() notice(string $message, array $context) : null Normal but significant events. Parameters string $message array $context Returns null
addNotice() addNotice() Alias of notice method. With this method you can put all parameter you want ex : Tlog::getInstance()->addNotice($arg1, $arg2, $arg3);
warning() warning(string $message, array $context) : null Exceptional occurrences that are not errors. Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong. Parameters string $message array $context Returns null
addWarning() addWarning() Alias of warning method. With this method you can put all parameter you want ex : Tlog::getInstance()->addWarning($arg1, $arg2, $arg3);
error() error(string $message, array $context) : null Runtime errors that do not require immediate action but should typically be logged and monitored. Parameters string $message array $context Returns null
addError() addError() Alias of error method. With this method you can put all parameter you want ex : Tlog::getInstance()->addError($arg1, $arg2, $arg3);
critical() critical(string $message, array $context) : null Critical conditions. Example: Application component unavailable, unexpected exception. Parameters string $message array $context Returns null
addCritical() addCritical() Alias of critical method. With this method you can put all parameter you want ex : Tlog::getInstance()->addCritical($arg1, $arg2, $arg3);
alert() alert(string $message, array $context) : null Action must be taken immediately. Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up. Parameters string $message array $context Returns null
addAlert() addAlert() Alias of alert method. With this method you can put all parameter you want ex : Tlog::getInstance()->addAlert($arg1, $arg2, $arg3);
emergency() emergency(string $message, array $context) : null System is unusable. Parameters string $message array $context Returns null
addEmergency() addEmergency() Alias of emergency method. With this method you can put all parameter you want ex : Tlog::getInstance()->addEmergency($arg1, $arg2, $arg3);
log() log(mixed $level, string $message, array $context) : null Logs with an arbitrary level. Parameters mixed $level string $message array $context Returns null
write() write(string $res) : void final end method. Write log for each destination handler Parameters string $res
isActivated() isActivated(int $level) : boolean check if level is activated and control if current file is activated Parameters int $level Returns boolean
isActivedFile() isActivedFile(string $file) : boolean check if $file is in authorized files Parameters string $file Returns boolean
loadDestinations() loadDestinations(\Thelia\Log\type $destinations, array $actives) Parameters \Thelia\Log\type $destinations array $actives array containing classes instanceof AbstractTlogDestination