@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | /* |
4 | 4 | * CodeIgniter Monolog Plus |
@@ -82,18 +82,18 @@ discard block |
||
82 | 82 | { |
83 | 83 | case 'file': |
84 | 84 | $handler = new RotatingFileHandler($this->config['file_logfile']); |
85 | - $formatter = new LineFormatter(null, null, $config['file_multiline']); |
|
85 | + $formatter = new LineFormatter(NULL, NULL, $config['file_multiline']); |
|
86 | 86 | $handler->setFormatter($formatter); |
87 | 87 | break; |
88 | 88 | |
89 | 89 | case 'ci_file': |
90 | 90 | $handler = new RotatingFileHandler($this->config['ci_file_logfile']); |
91 | - $formatter = new LineFormatter("%level_name% - %datetime% --> %message% %extra%\n", null, $config['ci_file_multiline']); |
|
91 | + $formatter = new LineFormatter("%level_name% - %datetime% --> %message% %extra%\n", NULL, $config['ci_file_multiline']); |
|
92 | 92 | $handler->setFormatter($formatter); |
93 | 93 | break; |
94 | 94 | |
95 | 95 | case 'new_relic': |
96 | - $handler = new NewRelicHandler(Logger::ERROR, true, $this->config['new_relic_app_name']); |
|
96 | + $handler = new NewRelicHandler(Logger::ERROR, TRUE, $this->config['new_relic_app_name']); |
|
97 | 97 | break; |
98 | 98 | |
99 | 99 | case 'hipchat': |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | case 'papertrail': |
114 | 114 | $handler = new SyslogUdpHandler($this->config['papertrail_host'], $this->config['papertrail_port']); |
115 | - $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%", null, $config['papertrail_multiline']); |
|
115 | + $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%", NULL, $config['papertrail_multiline']); |
|
116 | 116 | $handler->setFormatter($formatter); |
117 | 117 | break; |
118 | 118 | |
@@ -157,10 +157,10 @@ discard block |
||
157 | 157 | foreach ($this->config['exclusion_list'] as $findme) |
158 | 158 | { |
159 | 159 | $pos = strpos($msg, $findme); |
160 | - if ($pos !== false) |
|
160 | + if ($pos !== FALSE) |
|
161 | 161 | { |
162 | 162 | // just exit now - we don't want to log this error |
163 | - return true; |
|
163 | + return TRUE; |
|
164 | 164 | } |
165 | 165 | } |
166 | 166 | } |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | break; |
184 | 184 | } |
185 | 185 | } |
186 | - return true; |
|
186 | + return TRUE; |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | /* |
4 | 4 | |-------------------------------------------------------------------------- |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | /* |
4 | 4 | |-------------------------------------------------------------------------- |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | /* |
4 | 4 | * CodeIgniter Monolog Plus |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $config['hipchat_app_token'] = ''; //HipChat API Token |
38 | 38 | $config['hipchat_app_room_id'] = ''; //The room that should be alerted of the message (Id or Name) |
39 | 39 | $config['hipchat_app_notification_name'] = 'Monolog'; //Name used in the "from" field |
40 | -$config['hipchat_app_notify'] = false; //Trigger a notification in clients or not |
|
40 | +$config['hipchat_app_notify'] = FALSE; //Trigger a notification in clients or not |
|
41 | 41 | $config['hipchat_app_loglevel'] = 'WARNING'; //The minimum logging level at which this handler will be triggered |
42 | 42 | |
43 | 43 | /* PAPER TRAIL OPTIONS */ |
@@ -1,4 +1,4 @@ |
||
1 | -<?php defined('BASEPATH') OR exit('No direct script access allowed'); |
|
1 | +<?php defined('BASEPATH') or exit('No direct script access allowed'); |
|
2 | 2 | |
3 | 3 | /* GENERAL OPTIONS */ |
4 | 4 | $config['handlers'] = array('file', 'papertrail', 'cli'); // valid handlers are ci_file | file | new_relic | hipchat | stderr | papertrail |