Skip to content

Commit

Permalink
Update file logging
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Apr 15, 2020
1 parent 56fcba9 commit 3b2855f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/base/PluginTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ private function _setPluginComponents()

private function _setLogging()
{
Craft::getLogger()->dispatcher->targets[] = new FileTarget([
'logFile' => Craft::getAlias('@storage/logs/events.log'),
'categories' => ['events'],
]);
BaseHelper::setFileLogging('events');
}

}

0 comments on commit 3b2855f

Please sign in to comment.