Returns boolean
Description Writes the given message and type to all of the configured log
adapters. Configured adapters are passed both the $level and
$message variables. $level is one of the following strings/values.
The second is to use the
log() shortcut function available on any using the
LogTrait Calling log() will internally call
Log::write(): Example Make changes in the
config/routes.php file as shown in the following program.
config/routes.php use Cake\Core\Plugin;
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
Router::defaultRouteClass('DashedRoute');
Router::scope('/', function (RouteBuilder $routes) {
$routes->connect('logex',['controller'=>'Logexs','action'=>'index']);
CakePHP
57
$routes->fallbacks('DashedRoute');
});
Plugin::routes();
Create a