Commit 3583dd1d authored by Tobias Munk's avatar Tobias Munk

added log & debug extension

parent acaa095f
Pipeline #10019 passed with stages
......@@ -4,7 +4,9 @@
"require": {
"vlucas/phpdotenv": "2.*",
"yiisoft/yii2": "^2.0.8",
"yiisoft/yii2-bootstrap": "2.*"
"yiisoft/yii2-bootstrap": "2.*",
"yiisoft/yii2-debug": "2.*",
"codemix/yii2-streamlog": "^1.0.0"
},
"extra": {
"asset-installer-paths": {
......
......@@ -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": "a8f7c1921fe82065ec8a8b9a77ce900c",
"content-hash": "ba2694c4e7ea1933b007395134d64eb7",
"hash": "542c7f22cf548afbc81c49633ccd06b4",
"content-hash": "719e1ba15b39ad0f2f4b83a299036401",
"packages": [
{
"name": "bower-asset/bootstrap",
......@@ -255,6 +255,45 @@
],
"time": "2015-03-06 05:28:07"
},
{
"name": "codemix/yii2-streamlog",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://github.com/codemix/yii2-streamlog.git",
"reference": "8a0f03900887651e00a4f26cf7c3a12043bc2784"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/codemix/yii2-streamlog/zipball/8a0f03900887651e00a4f26cf7c3a12043bc2784",
"reference": "8a0f03900887651e00a4f26cf7c3a12043bc2784",
"shasum": ""
},
"type": "library",
"autoload": {
"psr-4": {
"codemix\\streamlog\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Michael Härtl",
"email": "haertl.mike@gmail.com"
}
],
"description": "A Yii 2 log target for streams in URL format",
"keywords": [
"log",
"stdout",
"stream",
"yii2"
],
"time": "2015-04-28 08:24:33"
},
{
"name": "ezyang/htmlpurifier",
"version": "v4.7.0",
......@@ -539,6 +578,53 @@
"yii2"
],
"time": "2016-02-06 00:49:24"
},
{
"name": "yiisoft/yii2-debug",
"version": "2.0.6",
"source": {
"type": "git",
"url": "https://github.com/yiisoft/yii2-debug.git",
"reference": "55ed2e853ed8050a34415f63a4da84f88a56f895"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yiisoft/yii2-debug/zipball/55ed2e853ed8050a34415f63a4da84f88a56f895",
"reference": "55ed2e853ed8050a34415f63a4da84f88a56f895",
"shasum": ""
},
"require": {
"yiisoft/yii2": ">=2.0.4",
"yiisoft/yii2-bootstrap": "*"
},
"type": "yii2-extension",
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
}
},
"autoload": {
"psr-4": {
"yii\\debug\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Qiang Xue",
"email": "qiang.xue@gmail.com"
}
],
"description": "The debugger extension for the Yii framework",
"keywords": [
"debug",
"debugger",
"yii2"
],
"time": "2016-03-17 03:50:19"
}
],
"packages-dev": [],
......
<?php
/**
* @link http://www.diemeisterei.de/
*
* @copyright Copyright (c) 2016 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// Settings for web-application only
return [
'bootstrap' => [
'debug',
],
'modules' => [
'debug' => [
'class' => 'yii\debug\Module',
'allowedIPs' => [
'127.0.0.1',
'::1',
'192.168.*',
'172.18.*',
],
],
],
];
......@@ -15,6 +15,24 @@ return [
'errorHandler' => [
'errorAction' => 'site/error',
],
'log' => [
'targets' => [
// writes to php-fpm output stream
[
'class' => 'codemix\streamlog\Target',
'url' => 'php://stdout',
'levels' => ['info', 'trace'],
'logVars' => [],
'enabled' => YII_DEBUG,
],
[
'class' => 'codemix\streamlog\Target',
'url' => 'php://stderr',
'levels' => ['error', 'warning'],
'logVars' => [],
],
],
],
'request' => [
'cookieValidationKey' => getenv('APP_COOKIE_VALIDATION_KEY'),
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment