2017 © Pedro Peláez
 

library codeigniter-log-viewer

This is a simple Log Viewer for viewing Code Igniter log files on the browser

image

hi2rashid/codeigniter-log-viewer

This is a simple Log Viewer for viewing Code Igniter log files on the browser

  • Wednesday, July 18, 2018
  • by hi2rashid
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

codeigniter-log-viewer

Log Viewer for Codeigniter Application generated logs. Supports CI v3.1.9, (*1)

Inspired by https://github.com/SeunMatt/codeigniter-log-viewer, (*2)

Change Log:, (*3)

Release version: v1.0.0 Date: 18-July-2018 * You can change the log viewer path by passing path as constructor., (*4)

How to Use it

Install using composer, (*5)

composer require hi2rashid/codeigniter-log-viewer, (*6)

Copy following line of code to any of your Codeigniter Controller, (*7)

Method 1 ()

In Welcome.php Controller, (*8)

public function index() {
    $CILogs = new \CILogViewer\CILogViewer("/var/log/localhost/");
    echo $CILogs->showLogs();
    return;
}

Method 2 ()

In Welcome.php Controller, (*9)

public function index() {
    $CILogs = new \CILogViewer\CILogViewer($this->config->item('ci_log_path'));
    echo $CILogs->showLogs();
    return;
}

In application/config/config.php Config file, (*10)

$config['ci_log_path'] = "/var/log/localhost/ci_log_path"

Also you need to make sure the directories /var/log/localhost/ci_log_path created and writable, (*11)

In Terminal : sudo mkdir -p /var/log/localhost/ci_log_path sudo chmod -Rf 777 /var/log/localhost/ci_log_path (Make sure not to use 777 on production systems), (*12)

Auto Refresh the Log View page

Just append ?rt=5000 (Example: http://localhost/codeigniter/welcome/logviewer?rt=5000) (5 seconds), (*13)

The Versions

18/07 2018

dev-master

9999999-dev

This is a simple Log Viewer for viewing Code Igniter log files on the browser

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Abdul Rashid

php codeigniter log viewer code igniter

18/07 2018

v1.0.0

1.0.0.0

This is a simple Log Viewer for viewing Code Igniter log files on the browser

  Sources   Download

MIT

The Requires

  • php >=5.6.4

 

by Abdul Rashid

php codeigniter log viewer code igniter