This version is outdated. You should upgrade your project to Mako 12.1!
Getting started
Routing and controllers
Command line
Databases (SQL)
Databases (NoSQL)
Security
Packages
Learn more
Logging
Mako uses the Monolog library for logging.
Basics
The phpdebug method is used to log debug data.
$this->logger->debug('foobar');
The phpinfo method is used to log interesting events.
$this->logger->info('foobar');
The phpnotice method is used to log normal but significant events.
$this->logger->notice('foobar');
The phpwarning method is used to log exceptional occurrences that are not errors.
$this->logger->warning('foobar');
The phperror method is used to log runtime errors that do not require immediate action but should typically be logged and monitored.
$this->logger->error('foobar');
The phpcritical method is used log to critical conditions.
$this->logger->critical('foobar');
The phpalert method is used to log events where action must be taken immediately.
$this->logger->alert('foobar');
The phpemergency method is used to log events where the system is unusable.
$this->logger->alert('foobar');
Advanced usage
Check out the Monolog documentation for the full documentation of the library.