PHPackages                             aic-international/laravel-chronos-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. aic-international/laravel-chronos-logger

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

aic-international/laravel-chronos-logger
========================================

Logging to a chronos server in Laravel

1.1.5(9mo ago)01.1k↓79.7%MITPHPPHP ^8.3

Since Sep 15Pushed 9mo agoCompare

[ Source](https://github.com/aic-international/laravel-chronos-logger)[ Packagist](https://packagist.org/packages/aic-international/laravel-chronos-logger)[ RSS](/packages/aic-international-laravel-chronos-logger/feed)WikiDiscussions production Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

Laravel Chronos Logger
======================

[](#laravel-chronos-logger)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f6a5ccd431129e6322a73c1abe7cce7370b5d4a51e15fc47083c9c2143a13b46/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6169632d696e7465726e6174696f6e616c2f6c61726176656c2d6368726f6e6f732d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aic-international/laravel-chronos-logger)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/6e7af2706f2abdd8cbf24acb54b031e12732575e0914e161df2dc25490eedf42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6169632d696e7465726e6174696f6e616c2f6c61726176656c2d6368726f6e6f732d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aic-international/laravel-chronos-logger)

`aic-international/laravel-chronos-logger` is a laravel package providing a logging handler to send logs to a Chronos Server.

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

[](#installation)

You can install the package via composer:

```
composer require aic-international/laravel-chronos-logger
```

Setup
-----

[](#setup)

### Prepare the logger configuration

[](#prepare-the-logger-configuration)

You must add a new channel to your `config/logging.php` file:

```
// config/logging.php
'channels' => [
    //...
    'chronos' => [
       'driver' => 'custom',
        'via' => AicInternational\ChronosLogger\Logger::class,
        'url' => env('LOG_CHRONOS_WEBHOOK_URL'),
        'token' => env('LOG_CHRONOS_TOKEN'),
        'level' => env('LOG_CHRONOS_LEVEL', 'debug'),
        'labels' => [
            'app' => env('APP_NAME'),
            'env' => env('APP_ENV'),
        ],
    ],
];
```

You can then provide the web-hook URL and token in your `.env` file:

```
LOG_CHRONOS_WEBHOOK_URL=https://example.com
CHRONOS_LOG_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX

```

### Use the logger channel

[](#use-the-logger-channel)

You have two options: log only to chronos or add the channel to the stack

#### Log only to the chronos channel

[](#log-only-to-the-chronos-channel)

Simply change the `.env` variable to use the chronos channel

```
LOG_CHANNEL=chronos

```

#### Add the channel on top of other channels

[](#add-the-channel-on-top-of-other-channels)

Add the channel to the stack in the `config/logging.php` configuration:

```
// config/logging.php
'channels' => [
    //...
    'stack' => [
        'driver'   => 'stack',
        'channels' => ['single', 'chronos'],
    ],
];
```

Then make sure the logging channel is set to stack in your `.env` file:

```
LOG_CHANNEL=stack

```

#### Logging to multiple Chronos channels

[](#logging-to-multiple-chronos-channels)

Of course, you can send your log messages to multiple Chronos channels. Just create as many channels as desired in `config/logging.php` and put them in the stack. Each channel should be named differently and should point to a different web hook URL.

Testing the Logger via Artisan
------------------------------

[](#testing-the-logger-via-artisan)

#### 1. Inspect channel configuration

[](#1-inspect-channel-configuration)

```
php artisan chronos:config
```

**Optional: provide another channel name:**

```
php artisan chronos:config chronos_staging
```

#### 2. Send a test log

[](#2-send-a-test-log)

```
php artisan chronos:log-test
```

**Optional custom message:**

```
php artisan chronos:log-test "Hello from Chronos!"
```

**Result:**

- A test log entry will be sent to the configured `chronos` channel.
- The console will display a confirmation:

```
✅ Test log sent: Hello from Chronos!

```

**Tip:**Use this command after installation or when changing configuration to quickly verify that everything is set up correctly.

---

The communication with Chronos Web hook failed
----------------------------------------------

[](#the-communication-with-chronos-web-hook-failed)

You might encounter this exception alongside "cURL error 60: SSL certificate problem: unable to get local issuer certificate" while using/testing your web hook in a development enviroment. This occurs due to your local machine's inability to verify the server's SSL certificate.

### To resolve this issue, follow these steps:

[](#to-resolve-this-issue-follow-these-steps)

- Obtain the cacert.pem file from the curl website.
- Store the cacert.pem file in a secure location on your computer, such as C:\\xampp\\php\\extras\\ssl\\cacert.pem.
- Access your php.ini file, typically found in your PHP installation directory.
- Locate curl.cainfo = in php.ini. If it's commented out (begins with a ;), remove the semicolon.
- Insert the path to cacert.pem you saved earlier. Example: curl.cainfo = "C:\\xampp\\php\\extras\\ssl\\cacert.pem".
- Save the php.ini file and restart your server to implement the changes.

Credits
-------

[](#credits)

- Got some ideas from [RakInteractive/Chronos](https://github.com/RakInteractive/Chronos)
- Got some ideas from [vpratfr/laravel-discord-logger](https://github.com/vpratfr/laravel-discord-logger)
- Got some ideas from [GrKamil/laravel-telegram-logging](https://github.com/GrKamil/laravel-telegram-logging)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance56

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

10

Last Release

291d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bee8116202b56ecd3ea289baba29c1b5f20610035c9e1d5970ac1a1cf5004f6?d=identicon)[Lord-EXE](/maintainers/Lord-EXE)

---

Top Contributors

[![SePo1984](https://avatars.githubusercontent.com/u/28987816?v=4)](https://github.com/SePo1984 "SePo1984 (13 commits)")

---

Tags

laravelloggingloggerchronos

### Embed Badge

![Health badge](/badges/aic-international-laravel-chronos-logger/health.svg)

```
[![Health](https://phpackages.com/badges/aic-international-laravel-chronos-logger/health.svg)](https://phpackages.com/packages/aic-international-laravel-chronos-logger)
```

###  Alternatives

[sentry/sentry-laravel

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

1.3k127.1M203](/packages/sentry-sentry-laravel)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2111.2M2](/packages/marvinlabs-laravel-discord-logger)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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