PHPackages                             dvxgit-jalonzo/prototype-logger - 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. dvxgit-jalonzo/prototype-logger

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

dvxgit-jalonzo/prototype-logger
===============================

Lightweight and flexible Laravel logger with automatic folder management.

v1.0.10(4mo ago)055MITPHPPHP &gt;=8.0

Since Nov 27Pushed 4mo agoCompare

[ Source](https://github.com/dvxgit-jalonzo/prototype-logger)[ Packagist](https://packagist.org/packages/dvxgit-jalonzo/prototype-logger)[ RSS](/packages/dvxgit-jalonzo-prototype-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (9)Used By (0)

Configuration
-------------

[](#configuration)

### Default Configuration

[](#default-configuration)

The package uses the following default values from the config file:

```
return [
    'log_path' => storage_path('logs'),     // Base directory for logs
    'log_folder' => 'prototype-logger',     // Subfolder within log_path
    'log_prefix' => 'logger',               // Prefix for log filenames
    'log_extension' => 'log',               // File extension
];
```

### Publishing Configuration

[](#publishing-configuration)

You can publish the configuration file to customize these values:

```
php artisan vendor:publish --tag=prototype-logger
```

This will create `config/prototype-logger.php` in your Laravel application.

Usage
-----

[](#usage)

All parameters are optional. If not provided, the logger will use values from the configuration file.

### Static Usage (Recommended for Quick Logging)

[](#static-usage-recommended-for-quick-logging)

```
use Nrmnalonzo\PrototypeLogger\PrototypeLogger;

// Configure once (optional - uses config defaults if not called)
PrototypeLogger::configure(
    logPath: storage_path('logs'),
    logFolder: 'app_logs',
    logPrefix: 'application',
    logExtension: 'log'
);

// Log messages
PrototypeLogger::trail('User logged in', ['user_id' => 123]);
PrototypeLogger::trail('Payment processed', ['amount' => 99.99, 'currency' => 'USD']);
```

### Instance Usage (For Multiple Log Destinations)

[](#instance-usage-for-multiple-log-destinations)

```
use Nrmnalonzo\PrototypeLogger\PrototypeLogger;

// Create a logger instance for employee logs
$employeeLogger = new PrototypeLogger(
    logPath: storage_path('logs'),
    logFolder: 'employee_logs',
    logPrefix: 'employee',
    logExtension: 'log'
);

// Create a logger instance for error logs
$errorLogger = new PrototypeLogger(
    logPath: storage_path('logs'),
    logFolder: 'errors',
    logPrefix: 'error',
    logExtension: 'log'
);

// Use different loggers for different purposes
$employeeLogger->log('Employee clocked in', ['employee_id' => 456]);
$errorLogger->log('Database connection failed', ['error' => 'Connection timeout']);
```

Log File Structure
------------------

[](#log-file-structure)

Logs are automatically organized by year and month:

```
storage/logs/
└── prototype-logger/           ← log_folder
    └── 202412/                 ← Year-Month subfolder (auto-created)
        ├── 20241201_logger.log
        ├── 20241202_logger.log
        └── 20241222_logger.log

```

Each log entry includes a timestamp:

```
[2024-12-22 14:30:45] User logged in [{"user_id":123}]
[2024-12-22 14:35:12] Payment processed [{"amount":99.99,"currency":"USD"}]

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance75

Regular maintenance activity

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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 ~4 days

Total

8

Last Release

135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6225bfeeaaf5bad2bb4d762d642d62dbea3b87ff8430fe41092038cf201f5b34?d=identicon)[nrmnalonzo](/maintainers/nrmnalonzo)

---

Top Contributors

[![dvxgit-jalonzo](https://avatars.githubusercontent.com/u/135410823?v=4)](https://github.com/dvxgit-jalonzo "dvxgit-jalonzo (14 commits)")

### Embed Badge

![Health badge](/badges/dvxgit-jalonzo-prototype-logger/health.svg)

```
[![Health](https://phpackages.com/badges/dvxgit-jalonzo-prototype-logger/health.svg)](https://phpackages.com/packages/dvxgit-jalonzo-prototype-logger)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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