Skip to content
This repository was archived by the owner on Dec 16, 2018. It is now read-only.

Commit f7d8942

Browse files
author
Steve Thomas
committed
Merge branch 'hotfix/1.1.1'
2 parents 934ca0f + 908bf79 commit f7d8942

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ Codeigniter-Monolog
33

44
Simple integration of the Monolog Package (https://github.com/Seldaek/monolog) into CodeIgniter by overwriting the CI_Log class.
55

6-
Based on https://github.com/pfote/Codeigniter-Monolog, but updating monolog to 1.6.* and supporting file logging more akin to native CodeIgniter logging.
6+
Based on https://github.com/pfote/Codeigniter-Monolog, but updating monolog to 1.7.* and supporting file logging more akin to native CodeIgniter logging.
77

8-
Also registers monolog as the PHP error handler to catch all errors and adds support for IntrospectionProcessor for additional meta data.
8+
This library registers Monolog as the PHP error handler to catch all errors and adds support for IntrospectionProcessor for additional meta data.
9+
10+
Supports File (RotatingFileHandler) and New Relic (NewRelicHandler).
911

1012
Installation
1113
------------
14+
* Add ```"monolog/monolog": "1.7.*"``` to your composer.json file
15+
* Run ```composer update```
16+
* Make sure your index.php contains ```include_once './vendor/autoload.php';```
17+
* Copy application/libraries/Log.php and application/config/monolog.php into your CodeIgniter application
1218

13-
* Download Monolog using Composer into your Codeigniter root
14-
* add to your index.php Composers autoload:
15-
```include_once './vendor/autoload.php';```
16-
* copy over the relevant files
17-
* have fun
18-
19-
USAGE
19+
Usage
2020
-----
2121
Use log_message() as per normal in CodeIgniter to log error, debug and info messages. Log files are stored in the application/logs folder in format YYYY-MM-DD-ci.log
2222

application/config/monolog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
$config['file_logfile'] = APPPATH . 'logs/ci.log';
2525

2626
/* NEW RELIC OPTIONS */
27-
$config['new_relic_app_name'] = 'App Name';
27+
$config['new_relic_app_name'] = 'App Name - ' . ENVIRONMENT;
2828

2929
// exclusion list for pesky messages which you may wish to temporarily suppress with strpos() match
30-
$config['exclusion_list'] = array();
30+
$config['exclusion_list'] = array();

application/libraries/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* CodeIgniter Monolog integration
77
*
8-
* Version 1.1.0
8+
* Version 1.1.1
99
* (c) Steve Thomas <[email protected]>
1010
*
1111
* For the full copyright and license information, please view the LICENSE

0 commit comments

Comments
 (0)