-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathlern.php
executable file
·111 lines (96 loc) · 2.71 KB
/
lern.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
return [
'record'=>[
'table'=>'vendor_tylercd100_lern_exceptions',
'collect'=>[
'method'=>false, //When true it will collect GET, POST, DELETE, PUT, etc...
'data'=>false, //When true it will collect Input data
'status_code'=>true,
'user_id'=>false,
'url'=>false,
],
/**
* When record.collect.data is true, this will exclude certain data keys recursively
*/
'excludeKeys' => [
'password'
]
],
'notify'=>[
/**
* The default name of the monolog logger channel
*/
'channel'=>'Tylercd100\LERN',
/**
* When using the default message body this will also include the stack trace
*/
'includeExceptionStackTrace'=>true,
/**
* mail, pushover, slack, etc...
*/
'drivers'=>['mail'],
/**
* Mail settings
*/
'mail'=>[
'to' =>'[email protected]',
'from'=>'[email protected]',
'smtp'=>true,
],
/**
* Pushover settings
*/
'pushover'=>[
'token' => env('PUSHOVER_APP_TOKEN'),
'user' => env('PUSHOVER_USER_KEY'),
'sound' => env('PUSHOVER_SOUND_ERROR','siren'), // https://pushover.net/api#sounds
],
/**
* Slack settings
*/
'slack'=>[
'token' => env('SLACK_APP_TOKEN'), //https://api.slack.com/web#auth
'channel' => env('SLACK_CHANNEL', '#exceptions'), //Dont forget the '#'
'username'=> env('SLACK_USERNAME', 'LERN'), //The 'from' name
],
/**
* HipChat settings
*/
'hipchat'=>[
'token' => env('HIPCHAT_APP_TOKEN'),
'room' => 'room',
'name' => 'name',
'notify'=> true,
],
/**
* Flowdock settings
*/
'flowdock'=>[
'token' => env('FLOWDOCK_APP_TOKEN'),
],
/**
* Fleephook settings
*/
'fleephook'=>[
'token' => env('FLEEPHOOK_APP_TOKEN'),
],
/**
* Plivo settings
*/
'plivo'=>[
'auth_id' => env('PLIVO_AUTH_ID'),
'token' => env('PLIVO_AUTH_TOKEN'),
'to' => env('PLIVO_TO'),
'from' => env('PLIVO_FROM'),
],
/**
* Twilio settings
*/
'twilio'=>[
'sid' => env('TWILIO_AUTH_SID'),
'secret' => env('TWILIO_AUTH_SECRET'),
'to' => env('TWILIO_TO'),
'from' => env('TWILIO_FROM'),
]
],
];