PHPackages                             jinnguyen/puja-log - 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. jinnguyen/puja-log

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

jinnguyen/puja-log
==================

Puja-Log allow sends your logs to files, databases and you can add more drive by your self

v1.1.0(9y ago)042Apache License 2.0

Since Jan 21Compare

[ Source](https://github.com/jinnguyen/puja-log)[ Packagist](https://packagist.org/packages/jinnguyen/puja-log)[ RSS](/packages/jinnguyen-puja-log/feed)WikiDiscussions Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

puja-log
========

[](#puja-log)

Puja-Log are the handler layers, that handle all fatal exceptions/errors ( include fatal errors) from PHP application. Support callback function

**Install**

```
composer require puja-log
```

**Usage**

```
include '/path/to/vendor/autoload.php';
use Puja\Logger\Logger;
```

**Example**

### Log File

[](#log-file)

```
use Puja\Log\Logger;
 $configures = array(
     'adapters' => array(
         'default' => array(
             'driver' => 'File',
             'priority' => Logger::INFO,
             'save_path' => __DIR__ . '/',
             'file_log' => 'application.log'
         )
     )
 );
 Logger::getAdapter()->info($e); // save to application.log
 Logger::getAdapter()->debug($e, array('bin' => 'test')); // save to test.log

```

### Log Db

[](#log-db)

```
$configures = array(
    'write_adapter_name' => 'master',
    'adapters' => array(
        'default' => array(
            'host' => 'localhost',
            'username' => 'root',
            'password' => '123',
            'dbname' => 'fwcms',
            'charset' => 'utf8',
        ),
        'master' => array(
            'host' => 'localhost',
            'username' => 'root',
            'password' => '123',
            'dbname' => 'fwcms',
            'charset' => 'utf8',
        )
    )
);
use Puja\Db\Adapter;
new Adapter($configures);
use Puja\Log\Logger;
$configures = array(
'adapters' => array(
'default' => array(
'driver' => 'Db',
'priority' => Logger::INFO,
'log_table' => 'puja_log_table', // table that stored log data
'create_table' => true, // should enable at very first run and disable after that
)
)
);
Logger::getAdapter()->info($e); // save to application.log
Logger::getAdapter()->debug($e, array('bin' => 'test')); // save to test.log

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Unknown

Total

1

Last Release

3447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25e5bd31b5dd70d47cbdc738bded06dbabfba3d584acce63c2c4b4fb7847f39d?d=identicon)[jinnguyen](/maintainers/jinnguyen)

---

Tags

logpujaPuja Log

### Embed Badge

![Health badge](/badges/jinnguyen-puja-log/health.svg)

```
[![Health](https://phpackages.com/badges/jinnguyen-puja-log/health.svg)](https://phpackages.com/packages/jinnguyen-puja-log)
```

###  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.9k](/packages/psr-log)[symfony/monolog-bundle

Symfony MonologBundle

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

A very simple activity logger to monitor the users of your website or application

5.9k50.2M442](/packages/spatie-laravel-activitylog)[sentry/sentry

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

1.9k240.0M315](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k122.6M186](/packages/sentry-sentry-laravel)

PHPackages © 2026

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