-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing loggin config and cleanup (#110)
- Loading branch information
Showing
58 changed files
with
237 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Monolog\Handler\NullHandler; | ||
use Monolog\Handler\StreamHandler; | ||
use Monolog\Handler\SyslogUdpHandler; | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Log Channel | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This option defines the default log channel that gets used when writing | ||
| messages to the logs. The name specified in this option should match | ||
| one of the channels defined in the "channels" configuration array. | ||
| | ||
*/ | ||
|
||
'default' => env('LOG_CHANNEL', 'stack'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Log Channels | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may configure the log channels for your application. Out of | ||
| the box, Laravel uses the Monolog PHP logging library. This gives | ||
| you a variety of powerful log handlers / formatters to utilize. | ||
| | ||
| Available Drivers: "single", "daily", "slack", "syslog", | ||
| "errorlog", "monolog", | ||
| "custom", "stack" | ||
| | ||
*/ | ||
|
||
'channels' => [ | ||
'stack' => [ | ||
'driver' => 'stack', | ||
'channels' => ['single'], | ||
'ignore_exceptions' => false, | ||
], | ||
|
||
'single' => [ | ||
'driver' => 'single', | ||
'path' => storage_path('logs/laravel.log'), | ||
'level' => env('LOG_LEVEL', 'debug'), | ||
], | ||
|
||
'daily' => [ | ||
'driver' => 'daily', | ||
'path' => storage_path('logs/laravel.log'), | ||
'level' => env('LOG_LEVEL', 'debug'), | ||
'days' => 14, | ||
], | ||
|
||
'slack' => [ | ||
'driver' => 'slack', | ||
'url' => env('LOG_SLACK_WEBHOOK_URL'), | ||
'username' => 'Laravel Log', | ||
'emoji' => ':boom:', | ||
'level' => env('LOG_LEVEL', 'critical'), | ||
], | ||
|
||
'papertrail' => [ | ||
'driver' => 'monolog', | ||
'level' => env('LOG_LEVEL', 'debug'), | ||
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), | ||
'handler_with' => [ | ||
'host' => env('PAPERTRAIL_URL'), | ||
'port' => env('PAPERTRAIL_PORT'), | ||
'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'), | ||
], | ||
], | ||
|
||
'stderr' => [ | ||
'driver' => 'monolog', | ||
'level' => env('LOG_LEVEL', 'debug'), | ||
'handler' => StreamHandler::class, | ||
'formatter' => env('LOG_STDERR_FORMATTER'), | ||
'with' => [ | ||
'stream' => 'php://stderr', | ||
], | ||
], | ||
|
||
'syslog' => [ | ||
'driver' => 'syslog', | ||
'level' => env('LOG_LEVEL', 'debug'), | ||
], | ||
|
||
'errorlog' => [ | ||
'driver' => 'errorlog', | ||
'level' => env('LOG_LEVEL', 'debug'), | ||
], | ||
|
||
'null' => [ | ||
'driver' => 'monolog', | ||
'handler' => NullHandler::class, | ||
], | ||
|
||
'emergency' => [ | ||
'path' => storage_path('logs/laravel.log'), | ||
], | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\Badge; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\Category; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\Category; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\Team; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\User; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\Project; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\Project; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Factories; | ||
|
||
use App\Models\Project; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2014_10_12_100000_create_password_resets_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_05_10_114925_create_projects_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_06_12_133100_alter_projects_add_description.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_06_12_133331_create_versions_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_06_12_195025_alter_versions_make_zip_and_dependencies_nullable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_06_13_100732_alter_projects_add_slug.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_06_13_142609_alter_files_and_versions_add_user_id.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_06_21_160511_create_project_dependencies_pivot_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_06_21_160719_alter_versions_remove_dependencies.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_06_23_215355_alter_versions_add_size_of_zip.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...base/migrations/2017_07_03_143514_create_categories_table_alter_projects_add_category.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_07_12_101551_alter_users_add_admin_boolean.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_07_28_083552_add_download_counter_to_projects.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_07_28_172959_alter_users_add_editor_field.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_08_03_144157_alter_categories_add_hidden.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2017_08_05_101934_alter_projects_add_status.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2018_10_23_150652_alter_projects_description_nullable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2019_01_31_111904_create_badges_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2019_01_31_112420_create_badge_project_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2019_02_13_164542_alter_files_content_blob_to_mediumblob.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2019_09_06_170135_alter_projects_drop_description.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
database/migrations/2019_09_18_173501_create_warnings_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.