PHPackages                             ankit-twidpay/twid-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. ankit-twidpay/twid-logger

ActiveLibrary

ankit-twidpay/twid-logger
=========================

Centralized logging package for maintaining consistent logging across projects.

0.0.7(2y ago)112MITHTMLPHP ^8.0

Since Oct 1Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (8)Used By (0)

Twid Logger
===========

[](#twid-logger)

Centralized logging package for maintaining consistent logging across projects.

Installation
------------

[](#installation)

You can install this package via [Composer](https://getcomposer.org/):

```
composer require ankit-twidpay/twid-logger
```

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

[](#configuration)

Publish the configuration file using the following artisan command:

```
php artisan vendor:publish --tag=config
```

This will create a `logging.php` file in your `config` directory. You can customize this file to define your log channels, metadata, and masked fields.

### Laravel Configuration

[](#laravel-configuration)

#### Alias

[](#alias)

Add the following alias to the aliases array in your `config/app.php` file:

```
'TLog' => twid\logger\Facades\TLog::class,
```

#### Provider

[](#provider)

Add the following service provider to the providers array in your `config/app.php` file:

```
twid\logger\TwidLoggerServiceProvider::class,
```

### Lumen Configuration

[](#lumen-configuration)

#### Alias

[](#alias-1)

Open your `bootstrap/app.php` file and add the following alias:

```
class_alias('twid\logger\Facades\TLog', 'TLog');
```

#### Provider

[](#provider-1)

Open your `bootstrap/app.php` file and register the service provider:

```
$app->register(twid\logger\TwidLoggerServiceProvider::class);
```

Usage
-----

[](#usage)

### Facade: TLog

[](#facade-tlog)

This package provides a facade named `TLog` for logging messages. You can use this facade to log messages to different channels dynamically.

Example:

```
use twid\logger\Facades\TLog;

// Log an information message to the 'default' channel
TLog::info('This is an information message');

// Log an error message to the 'error' channel
TLog::error('This is an error message', ['error_code' => 500]);
```

If you use a channel name as a method, the facade will log the message to that channel. If the method is not explicitly defined, it is treated as a channel name, and the log method is invoked on the corresponding logger instance.

### Logger

[](#logger)

The `Logger` class is responsible for handling log messages. It's initialized with a log channel, and you can use it to log messages with specific data.

Example:

```
use twid\logger\Logger;

// Create a logger instance for the 'info' channel
$logger = new Logger('info');

// Log a message with additional data
$logger->log('This is a log message', ['user_id' => 123]);
```

### License

[](#license)

This package is open-source software licensed under the MIT license.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Total

6

Last Release

952d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94147b842309894f584125d64123af58ad20c0b86b6c73d2ff04bc95b85cd48e?d=identicon)[ankittwid](/maintainers/ankittwid)

---

Top Contributors

[![ankit-twidpay](https://avatars.githubusercontent.com/u/135957898?v=4)](https://github.com/ankit-twidpay "ankit-twidpay (20 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ankit-twidpay-twid-logger/health.svg)

```
[![Health](https://phpackages.com/badges/ankit-twidpay-twid-logger/health.svg)](https://phpackages.com/packages/ankit-twidpay-twid-logger)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)

PHPackages © 2026

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