diff --git a/.craftplugin b/.craftplugin index 28dfd15..0c6eb6e 100644 --- a/.craftplugin +++ b/.craftplugin @@ -1 +1 @@ -{"pluginName":"onelogger","pluginDescription":"Logging Alternative for Craft CMS 3.x using STDOUT and STDERR","pluginVersion":"2.0.0","pluginAuthorName":"One Design Company","pluginVendorName":"onedesign","pluginAuthorUrl":"https://onedesigncompany.com","pluginAuthorGithub":"onedesign","codeComments":"","pluginComponents":"","consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"} +{"pluginName":"onelogger","pluginDescription":"Logging Alternative for Craft CMS 3.x using STDOUT and STDERR","pluginVersion":"2.0.1","pluginAuthorName":"One Design Company","pluginVendorName":"onedesign","pluginAuthorUrl":"https://onedesigncompany.com","pluginAuthorGithub":"onedesign","codeComments":"","pluginComponents":"","consolecommandName":"","controllerName":"","cpsectionName":"","elementName":"","fieldName":"","modelName":"","purchasableName":"","recordName":"","serviceName":"","taskName":"","utilityName":"","widgetName":"","apiVersion":"api_version_3_0"} diff --git a/composer.json b/composer.json index 21a4f51..e0d2f70 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "onedesign/onelogger", "description": "Logging Alternative for Craft CMS 3.x using STDOUT and STDERR", "type": "craft-plugin", - "version": "2.0.0", + "version": "2.0.1", "keywords": [ "craft", "cms", diff --git a/src/OneLogger.php b/src/OneLogger.php index 1cd44d2..012d2f5 100644 --- a/src/OneLogger.php +++ b/src/OneLogger.php @@ -56,7 +56,7 @@ public function init() self::$plugin = $this; // Creates a stream target that writes to php://stderr - $streamTarget = new \onedesign\onelogger\StreamTarget(); + $streamTarget = new \onedesign\onelogger\log\StreamTarget(); $streamTarget->setLevels($this->settings->logLevels); Craft::getLogger()->dispatcher->targets[] = $streamTarget; diff --git a/src/log/StreamTarget.php b/src/log/StreamTarget.php index 268b829..c16e278 100644 --- a/src/log/StreamTarget.php +++ b/src/log/StreamTarget.php @@ -1,5 +1,5 @@