PHPackages                             virdiggg/log-parser-ci3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. virdiggg/log-parser-ci3

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

virdiggg/log-parser-ci3
=======================

Log parser for default formatted log file in CodeIgniter 3

1.0.0(1y ago)134MITPHPPHP &gt;=5.6.0

Since Nov 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/virdiggg/log-parser-ci3)[ Packagist](https://packagist.org/packages/virdiggg/log-parser-ci3)[ RSS](/packages/virdiggg-log-parser-ci3/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

A Simple Log Parser for CodeIgniter 3
=====================================

[](#a-simple-log-parser-for-codeigniter-3)

[![](https://camo.githubusercontent.com/f20b070734560c7a0e5416235b01410cd70c547d6988f2eccaf2e934622b81ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f76697264696767672f6c6f672d7061727365722d636933)](https://camo.githubusercontent.com/f20b070734560c7a0e5416235b01410cd70c547d6988f2eccaf2e934622b81ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f76697264696767672f6c6f672d7061727365722d636933) [![](https://camo.githubusercontent.com/18e4ddcfbbc33e726cef9f1c5fcaad1d1ec32ae903a2bd6ace8f3b6743190a08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f646569676e697465722d2d76657273696f6e2d332d677265656e)](https://camo.githubusercontent.com/18e4ddcfbbc33e726cef9f1c5fcaad1d1ec32ae903a2bd6ace8f3b6743190a08/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f646569676e697465722d2d76657273696f6e2d332d677265656e) [![](https://camo.githubusercontent.com/b74338e4f9235f629d295a3088412d1f3154d5029d396af1b27bac86cb84b3a4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f76697264696767672f6c6f672d7061727365722d636933)](https://camo.githubusercontent.com/b74338e4f9235f629d295a3088412d1f3154d5029d396af1b27bac86cb84b3a4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f76697264696767672f6c6f672d7061727365722d636933)

Inspired from [opcodesio/log-viewer](https://github.com/opcodesio/log-viewer) for laravel.
------------------------------------------------------------------------------------------

[](#inspired-from-opcodesiolog-viewer-for-laravel)

### HOW TO USE

[](#how-to-use)

- Install this library with composer

```
composer require virdiggg/log-parser-ci3
```

- Open your `config/config.php`, then edit this line.

```
-$config['log_threshold'] = 0;
+$config['log_threshold'] = 1;
```

- Optional, you can use `.log` extension, not the default `.php`. Edit this line.

```
-$config['log_file_extension'] = '';
+$config['log_file_extension'] = 'log';
```

- Create a controller to use this library. Example is `application/controller/App.php`. This example is in JSON format; you can modify it accordingly.

```
