PHPackages                             gundars/hoglog - 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. gundars/hoglog

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

gundars/hoglog
==============

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

0.3.0(10y ago)11.1kMITPHPPHP &gt;=5.3.2

Since Jun 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Gundars/HogLog)[ Packagist](https://packagist.org/packages/gundars/hoglog)[ Docs](https://github.com/Gundars/HogLog)[ RSS](/packages/gundars-hoglog/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

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

```

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

\###Installation

Add a dependency to your composer, execute

```
composer require gundars/hoglog ~0.3.*
```

Add the following lines to your /bootstrap/app.php:

```
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

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

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.

\####Samples:

\#####Allow reading all files in logs directory Code:

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

URLs:

```
#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:

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

URL:

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

\#####Allow reading only single file lumen.log Code:

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

URL:

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

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~76 days

Total

3

Last Release

3854d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e462cab4fa9fda90f44e53e5ee8fd4199f4cf82b19e25e2b7424a87b6239422a?d=identicon)[gundars](/maintainers/gundars)

---

Top Contributors

[![Gundars](https://avatars.githubusercontent.com/u/1295622?v=4)](https://github.com/Gundars "Gundars (30 commits)")

---

Tags

logfileviewremote

### Embed Badge

![Health badge](/badges/gundars-hoglog/health.svg)

```
[![Health](https://phpackages.com/badges/gundars-hoglog/health.svg)](https://phpackages.com/packages/gundars-hoglog)
```

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k997.8M7.9k](/packages/monolog-monolog)[psr/log

Common interface for logging libraries

10.4k1.2B10.8k](/packages/psr-log)[symfony/monolog-bundle

Symfony MonologBundle

2.9k258.2M1.7k](/packages/symfony-monolog-bundle)[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k240.0M312](/packages/sentry-sentry)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327137.6M163](/packages/sentry-sdk)[putyourlightson/craft-log-to-file

Logs messages to a specific log file for Craft CMS.

29368.5k5](/packages/putyourlightson-craft-log-to-file)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
