Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
4a630f54
Unverified
Commit
4a630f54
authored
Jun 29, 2018
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding logging.php configuration file
parent
071317b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
0 deletions
+81
-0
logging.php
config/logging.php
+81
-0
No files found.
config/logging.php
0 → 100644
View file @
4a630f54
<?php
use
Monolog\Handler\StreamHandler
;
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'
],
],
'single'
=>
[
'driver'
=>
'single'
,
'path'
=>
storage_path
(
'logs/laravel.log'
),
'level'
=>
'debug'
,
],
'daily'
=>
[
'driver'
=>
'daily'
,
'path'
=>
storage_path
(
'logs/laravel.log'
),
'level'
=>
'debug'
,
'days'
=>
7
,
],
'slack'
=>
[
'driver'
=>
'slack'
,
'url'
=>
env
(
'LOG_SLACK_WEBHOOK_URL'
),
'username'
=>
'Laravel Log'
,
'emoji'
=>
':boom:'
,
'level'
=>
'critical'
,
],
'stderr'
=>
[
'driver'
=>
'monolog'
,
'handler'
=>
StreamHandler
::
class
,
'with'
=>
[
'stream'
=>
'php://stderr'
,
],
],
'syslog'
=>
[
'driver'
=>
'syslog'
,
'level'
=>
'debug'
,
],
'errorlog'
=>
[
'driver'
=>
'errorlog'
,
'level'
=>
'debug'
,
],
],
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment