Closed dbuonomo closed 4 years ago
Logging to a new channel. This works for any of the levels - e.g. addNotice, addAlert, etc.
use Concrete\Core\Logging\LoggerFactory;
$logger = $this->app->make(LoggerFactory::class)->createLogger('your_new_channel'); $logger->addNotice('A notice level log message.'); $logger->addInfo('A info level log message.');
ThanX. I added an entry for this.
Logging to a new channel. This works for any of the levels - e.g. addNotice, addAlert, etc.
use Concrete\Core\Logging\LoggerFactory;
$logger = $this->app->make(LoggerFactory::class)->createLogger('your_new_channel'); $logger->addNotice('A notice level log message.'); $logger->addInfo('A info level log message.');