Log Levels / Console Verbosity (OutputInterface)
emergency() |
System is unusable. |
||
alert() |
Action must be taken immediately. |
||
critical() |
Critical conditions. |
||
error() |
Runtime errors that do not require immediate action but should typically be logged and monitored. |
VERBOSITY_QUIET (-1) |
-q / stderr |
warning() |
Exceptional occurrences that are not errors. |
VERBOSITY_NORMAL (0) |
(non) / stdout |
notice() |
Normal but significant events. |
VERBOSITY_VERBOSE (1) |
-v |
info() |
Interesting events. |
VERBOSITY_VERY_VERBOSE (2) |
-vv |
debug() |
Detailed debug information. |
VERBOSITY_DEBUG (3) |
-vvv |
use Psr\Log\LoggerInterface;
public function index(LoggerInterface $logger) {
$logger->info('I just got the logger');
}
public function index(LoggerInterface $logger) {
$logger->info('I just got the logger');
}
Comments
Related