From a81c87bed71b832a54eb0fed3c126795ebc6985c Mon Sep 17 00:00:00 2001 From: James Brooks Date: Fri, 6 Jan 2017 19:19:51 +0000 Subject: [PATCH] Install AltThree/Logger, prevent HttpExceptionInterface logging --- composer.json | 3 +- composer.lock | 369 ++++++++++++++++++++++++------------------ config/app.php | 1 + config/exceptions.php | 2 +- config/logger.php | 27 ++++ 5 files changed, 246 insertions(+), 156 deletions(-) create mode 100644 config/logger.php diff --git a/composer.json b/composer.json index 4064eaa9..c5fd180e 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,8 @@ "pragmarx/google2fa": "^0.7.1", "predis/predis": "^1.1", "roumen/feed": "^2.10.4", - "twig/twig": "^1.26.1" + "twig/twig": "^1.26.1", + "alt-three/logger": "^1.3" }, "require-dev": { "alt-three/testbench": "^1.9", diff --git a/composer.lock b/composer.lock index 51cfa069..f4bc9d6a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "63bbf3c3c93ca5e9a9b21a16156fdf4e", - "content-hash": "6f8ada6770ff17a57e4b6079e800443c", + "hash": "a4a074d3d228c33aadbf4bee9e4be4f4", + "content-hash": "48661b17696b4a6a64fd61e19a3d8fac", "packages": [ { "name": "alt-three/badger", @@ -202,6 +202,67 @@ ], "time": "2016-04-22 17:24:35" }, + { + "name": "alt-three/logger", + "version": "v1.3.0", + "source": { + "type": "git", + "url": "https://github.com/AltThree/Logger.git", + "reference": "2136162549b6ec99e3eae9f8cfff84e41caafe15" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/AltThree/Logger/zipball/2136162549b6ec99e3eae9f8cfff84e41caafe15", + "reference": "2136162549b6ec99e3eae9f8cfff84e41caafe15", + "shasum": "" + }, + "require": { + "illuminate/contracts": "5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*", + "php": ">=5.5.9", + "psr/log": "^1.0" + }, + "require-dev": { + "graham-campbell/testbench": "^3.1", + "phpunit/phpunit": "^4.8|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "AltThree\\Logger\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "James Brooks", + "email": "james@alt-three.com" + }, + { + "name": "Graham Campbell", + "email": "graham@alt-three.com" + }, + { + "name": "Joseph Cohen", + "email": "joe@alt-three.com" + } + ], + "description": "A Logger Wrapper For Laravel 5", + "keywords": [ + "Alt Three", + "logger", + "logging" + ], + "time": "2017-01-01 12:36:39" + }, { "name": "alt-three/throttle", "version": "v1.2.0", @@ -1231,58 +1292,6 @@ ], "time": "2014-09-09 13:34:57" }, - { - "name": "fedeisas/laravel-mail-css-inliner", - "version": "1.5", - "source": { - "type": "git", - "url": "https://github.com/fedeisas/laravel-mail-css-inliner.git", - "reference": "8c3cd958634e865a90fc398900ea59c427dd35cc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/fedeisas/laravel-mail-css-inliner/zipball/8c3cd958634e865a90fc398900ea59c427dd35cc", - "reference": "8c3cd958634e865a90fc398900ea59c427dd35cc", - "shasum": "" - }, - "require": { - "illuminate/support": "~5.0", - "php": ">=5.4.0", - "tijsverkoyen/css-to-inline-styles": "~1.2" - }, - "require-dev": { - "jakub-onderka/php-console-highlighter": "0.3.*", - "jakub-onderka/php-parallel-lint": "0.8.*", - "phpmd/phpmd": "~1.5", - "phpunit/phpunit": "~4.0", - "satooshi/php-coveralls": "~0.7@dev", - "squizlabs/php_codesniffer": "~1.5", - "swiftmailer/swiftmailer": "~5.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Fedeisas\\LaravelMailCssInliner\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fede Isas", - "email": "fedeisas@hotmail.com" - } - ], - "description": "Inline the CSS of your HTML emails using Laravel", - "keywords": [ - "css", - "laravel", - "mailer" - ], - "time": "2016-04-19 07:02:48" - }, { "name": "fideloper/proxy", "version": "3.2.0", @@ -3469,59 +3478,6 @@ "homepage": "https://symfony.com", "time": "2016-12-08 14:58:14" }, - { - "name": "symfony/css-selector", - "version": "v3.2.1", - "source": { - "type": "git", - "url": "https://github.com/symfony/css-selector.git", - "reference": "e1241f275814827c411d922ba8e64cf2a00b2994" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/e1241f275814827c411d922ba8e64cf2a00b2994", - "reference": "e1241f275814827c411d922ba8e64cf2a00b2994", - "shasum": "" - }, - "require": { - "php": ">=5.5.9" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.2-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\CssSelector\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jean-François Simon", - "email": "jeanfrancois.simon@sensiolabs.com" - }, - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony CssSelector Component", - "homepage": "https://symfony.com", - "time": "2016-11-03 08:11:03" - }, { "name": "symfony/debug", "version": "v3.1.8", @@ -4241,53 +4197,6 @@ ], "time": "2016-12-08 14:58:14" }, - { - "name": "tijsverkoyen/css-to-inline-styles", - "version": "1.5.5", - "source": { - "type": "git", - "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", - "reference": "9753fc340726e327e4d48b7c0604f85475ae0bc3" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/9753fc340726e327e4d48b7c0604f85475ae0bc3", - "reference": "9753fc340726e327e4d48b7c0604f85475ae0bc3", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "symfony/css-selector": "~2.1|~3.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.5.x-dev" - } - }, - "autoload": { - "psr-4": { - "TijsVerkoyen\\CssToInlineStyles\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD" - ], - "authors": [ - { - "name": "Tijs Verkoyen", - "email": "css_to_inline_styles@verkoyen.eu", - "role": "Developer" - } - ], - "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", - "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", - "time": "2015-12-08 16:14:14" - }, { "name": "twig/twig", "version": "v1.30.0", @@ -4568,6 +4477,58 @@ ], "time": "2015-06-14 21:17:01" }, + { + "name": "fedeisas/laravel-mail-css-inliner", + "version": "1.5", + "source": { + "type": "git", + "url": "https://github.com/fedeisas/laravel-mail-css-inliner.git", + "reference": "8c3cd958634e865a90fc398900ea59c427dd35cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fedeisas/laravel-mail-css-inliner/zipball/8c3cd958634e865a90fc398900ea59c427dd35cc", + "reference": "8c3cd958634e865a90fc398900ea59c427dd35cc", + "shasum": "" + }, + "require": { + "illuminate/support": "~5.0", + "php": ">=5.4.0", + "tijsverkoyen/css-to-inline-styles": "~1.2" + }, + "require-dev": { + "jakub-onderka/php-console-highlighter": "0.3.*", + "jakub-onderka/php-parallel-lint": "0.8.*", + "phpmd/phpmd": "~1.5", + "phpunit/phpunit": "~4.0", + "satooshi/php-coveralls": "~0.7@dev", + "squizlabs/php_codesniffer": "~1.5", + "swiftmailer/swiftmailer": "~5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Fedeisas\\LaravelMailCssInliner\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fede Isas", + "email": "fedeisas@hotmail.com" + } + ], + "description": "Inline the CSS of your HTML emails using Laravel", + "keywords": [ + "css", + "laravel", + "mailer" + ], + "time": "2016-04-19 07:02:48" + }, { "name": "filp/whoops", "version": "2.1.5", @@ -5995,6 +5956,59 @@ "homepage": "https://github.com/sebastianbergmann/version", "time": "2016-10-03 07:35:21" }, + { + "name": "symfony/css-selector", + "version": "v3.2.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "e1241f275814827c411d922ba8e64cf2a00b2994" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/e1241f275814827c411d922ba8e64cf2a00b2994", + "reference": "e1241f275814827c411d922ba8e64cf2a00b2994", + "shasum": "" + }, + "require": { + "php": ">=5.5.9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.2-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony CssSelector Component", + "homepage": "https://symfony.com", + "time": "2016-11-03 08:11:03" + }, { "name": "symfony/dom-crawler", "version": "v3.2.1", @@ -6148,6 +6162,53 @@ "description": "A fake Mailer for Laravel applications that takes the pain out of testing mail.", "time": "2016-11-30 16:49:35" }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "1.5.5", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "9753fc340726e327e4d48b7c0604f85475ae0bc3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/9753fc340726e327e4d48b7c0604f85475ae0bc3", + "reference": "9753fc340726e327e4d48b7c0604f85475ae0bc3", + "shasum": "" + }, + "require": { + "php": ">=5.3.0", + "symfony/css-selector": "~2.1|~3.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "time": "2015-12-08 16:14:14" + }, { "name": "webmozart/assert", "version": "1.2.0", diff --git a/config/app.php b/config/app.php index ef08a1e5..ece2b3ac 100644 --- a/config/app.php +++ b/config/app.php @@ -175,6 +175,7 @@ return [ */ AltThree\Badger\BadgerServiceProvider::class, AltThree\Emoji\EmojiServiceProvider::class, + AltThree\Logger\LoggerServiceProvider::class, BackupManager\Laravel\Laravel5ServiceProvider::class, Barryvdh\Cors\ServiceProvider::class, Fideloper\Proxy\TrustedProxyServiceProvider::class, diff --git a/config/exceptions.php b/config/exceptions.php index 6c73dd23..d084355e 100644 --- a/config/exceptions.php +++ b/config/exceptions.php @@ -106,7 +106,7 @@ return [ 'Illuminate\Auth\Access\AuthorizationException' => 'warning', 'Illuminate\Database\Eloquent\ModelNotFoundException' => 'warning', 'Illuminate\Session\TokenMismatchException' => 'notice', - 'Symfony\Component\HttpKernel\Exception\HttpExceptionInterface' => 'warning', + 'Symfony\Component\HttpKernel\Exception\HttpExceptionInterface' => 'notice', 'Symfony\Component\Debug\Exception\FatalErrorException' => 'critical', 'Exception' => 'error', ], diff --git a/config/logger.php b/config/logger.php new file mode 100644 index 00000000..3ef3c1ca --- /dev/null +++ b/config/logger.php @@ -0,0 +1,27 @@ + [ + 'Illuminate\Log\Writer' => ['warning', 'error', 'critical', 'alert', 'emergency'], + ], + +];