2017 © Pedro Peláez
 

library hoglog

HogLog is a log viewer API for your remote Laravel/Lumen installation

image

gundars/hoglog

HogLog is a log viewer API for your remote Laravel/Lumen installation

  • Friday, November 20, 2015
  • by gundars
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,069 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md



,--. ,--. ____ ____ ___ ______ _____ ___ ______ \ /-~-\ / |_ || _|.' `. .' ___ ||_ _| .' `. .' ___ | )' a a `( | |__| | / .-. \/ .' \_| | | / .-. \/ .' \_| ( ,---. ) | __ | | | | || | ____ | | _ | | | || | ____ `(_o_o_)' _| | | |_\ `-' /\ `.___] |_| |__/ |\ `-' /\ `.___] | )`-'( |____||____|`.___.' `._____.'|________| `.___.' `._____.'

HogLog is log file viewer API for your remote Laravel/Lumen installation, (*1)

Installation

Add a dependency to your composer, execute, (*2)

composer require gundars/hoglog ~0.3.*

Add the following lines to your /bootstrap/app.php:, (*3)

config(
    [
        'hoglog' => [
            'rootPrefix' => 'configuration/hoglog/',
            'logdir'     => storage_path() . '/logs'
        ]
    ]
);
$app->register('HogLog\HogLogServiceProvider');

Plan B

If your installation is not booting, but you need laravel-less log reader, use the /extra/PlanB class, (*4)

Format: class::getInstance()->view(string $jailDir[, array $whitelistFilenames]), (*5)

Hitting the URL of the file it is included in with browse parameter will either print the file contents, or list of items in case of a directory., (*6)

Samples:

Allow reading all files in logs directory

Code:, (*7)

\HogLog\PlanB::getInstance()->view('../storage/logs/');

URLs:, (*8)

#reads dir
example.com/file-calling-planb.php/?browse=../storage/logs/
#reads file
example.com/file-calling-planb.php/?browse=../storage/logs/lumen.log
Allow reading all files in storage directory with .txt extension

Code:, (*9)

\HogLog\PlanB::getInstance()->view('../storage/', ['.txt']);

URL:, (*10)

example.com/file-calling-planb.php/?browse=../storage/file.txt
Allow reading only single file lumen.log

Code:, (*11)

\HogLog\PlanB::getInstance()->view('../storage/logs/', ['lumen.log']);

URL:, (*12)

example.com/file-calling-planb.php/?browse=../storage/file.txt

The Versions

20/11 2015

dev-master

9999999-dev https://github.com/Gundars/HogLog

HogLog is a log viewer API for your remote Laravel/Lumen installation

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Gundars Meness

log file remote view

20/11 2015

0.3.0

0.3.0.0 https://github.com/Gundars/HogLog

HogLog is a log viewer API for your remote Laravel/Lumen installation

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Gundars Meness

log file remote view

23/06 2015

dev-development

dev-development https://github.com/Gundars/HogLog

HogLog is a log viewer API for your remote Laravel/Lumen installation

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Gundars Meness

log file remote view

23/06 2015

0.2

0.2.0.0 https://github.com/Gundars/HogLog

HogLog is a log viewer API for your remote Lumen installation

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Gundars Meness

log file remote view

21/06 2015

v0.1

0.1.0.0 https://github.com/Gundars/HogLog

HogLog is a log viewer API for your remote Lumen installation

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Gundars Meness

log file remote view