You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,20 +3,20 @@ Codeigniter-Monolog
3
3
4
4
Simple integration of the Monolog Package (https://github.com/Seldaek/monolog) into CodeIgniter by overwriting the CI_Log class.
5
5
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.
7
7
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).
9
11
10
12
Installation
11
13
------------
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
12
18
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
20
20
-----
21
21
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
0 commit comments