PHPackages                             goedemiddag/betterstack-logs - 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. goedemiddag/betterstack-logs

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

goedemiddag/betterstack-logs
============================

Monolog handler for Better Stack Logs

1.2.2(2mo ago)6527.4k↓35.8%2MITPHPPHP ^8.2

Since Nov 21Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/goedemiddag/betterstack-logs)[ Packagist](https://packagist.org/packages/goedemiddag/betterstack-logs)[ RSS](/packages/goedemiddag-betterstack-logs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (11)Versions (7)Used By (0)

Monolog handler for Better Stack Logs
=====================================

[](#monolog-handler-for-better-stack-logs)

This package allows you to write logs to Better Stack Logs.

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

[](#installation)

First use composer to install the package using the following command

```
composer require goedemiddag/betterstack-logs
```

Usage
-----

[](#usage)

Add a new channel to the `config/logging.php` file

```
'channels' => [
    ...
    'betterstack' => [
        'driver'         => 'monolog',
        'level'          => env('LOG_LEVEL', 'debug'),
        'handler'        => \Goedemiddag\BetterStackLogs\BetterStackHandler::class,
        'handler_with'   => [
            'sourceToken' => env('BETTERSTACK_LOGS_SOURCE_TOKEN'),
            'host'        => env('BETTERSTACK_LOGS_HOST'),
        ],
    ],
    ...
]
```

Set the default log channel to `betterstack` or add it to the `stack` channel

Add the following to your `.env` file

```
BETTERSTACK_LOGS_SOURCE_TOKEN=your-source-token
BETTERSTACK_LOGS_HOST=your-ingestion-host
```

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance84

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% 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 ~165 days

Recently: every ~190 days

Total

6

Last Release

80d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11698012?v=4)[Goedemiddag!](/maintainers/Goedemiddag)[@goedemiddag](https://github.com/goedemiddag)

---

Top Contributors

[![johankrijt](https://avatars.githubusercontent.com/u/11670720?v=4)](https://github.com/johankrijt "johankrijt (14 commits)")[![dvdheiden](https://avatars.githubusercontent.com/u/90568118?v=4)](https://github.com/dvdheiden "dvdheiden (7 commits)")[![dcmastenbroek](https://avatars.githubusercontent.com/u/31538560?v=4)](https://github.com/dcmastenbroek "dcmastenbroek (1 commits)")

---

Tags

laravelmonologbetterstack

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/goedemiddag-betterstack-logs/health.svg)

```
[![Health](https://phpackages.com/badges/goedemiddag-betterstack-logs/health.svg)](https://phpackages.com/packages/goedemiddag-betterstack-logs)
```

###  Alternatives

[spatie/laravel-activitylog

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

5.8k45.4M309](/packages/spatie-laravel-activitylog)[tylercd100/lern

LERN (Laravel Exception Recorder and Notifier) is a Laravel 5 package that will record exceptions into a database and will notify you via Email, Pushover or Slack.

438153.4k3](/packages/tylercd100-lern)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10619.4k](/packages/naoray-laravel-github-monolog)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

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