hostlink / puxt-log
A logger for puxt
1.0.0
2021-01-07 03:03 UTC
Requires
- monolog/monolog: ^1.26
README
A logger for puxt
Install
composer requrie hostlink/puxt-log
Setup
puxt.config.php
"modules" => [ "hostlink/puxt-log" ], "log" => [ "name" => "puxt", "handler" => [ [ "stream" => __DIR__ . "/log/" . date("Y-m-d") . ".log", "level" => Monolog\Logger::INFO ] ] ]
Usage
$context->log->info($message,$data);