PHPackages                             borgstein/logstream-laravel - 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. borgstein/logstream-laravel

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

borgstein/logstream-laravel
===========================

Laravel client for the Logstream logging API

v1.0.2(2mo ago)052MITPHPPHP ^8.1

Since Feb 22Pushed 2mo agoCompare

[ Source](https://github.com/fredrikborgstein/logstream-laravel)[ Packagist](https://packagist.org/packages/borgstein/logstream-laravel)[ RSS](/packages/borgstein-logstream-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (16)Versions (4)Used By (0)

logstream-laravel
=================

[](#logstream-laravel)

Laravel client for [Logstream](https://logger.borgstein.io).

Install
-------

[](#install)

```
composer require borgstein/logstream-laravel
```

Service provider and Facade are auto-discovered.

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

[](#configuration)

Publish the config file:

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

Add to `.env`:

```
LOGSTREAM_API_KEY=your_api_key_here
```

Usage
-----

[](#usage)

### Option A — Facade

[](#option-a--facade)

```
use Logstream\Laravel\Facades\Logstream;

Logstream::info('User signed up', ['userId' => $user->id]);
Logstream::error('Payment failed', ['orderId' => $order->id]);
```

### Option B — Laravel Log channel

[](#option-b--laravel-log-channel)

In `config/logging.php`:

```
'channels' => [
    'logstream' => [
        'driver' => 'custom',
        'via'    => \Logstream\Laravel\LogstreamLogger::class,
        'level'  => 'debug',
    ],
],
```

Then use as any Laravel log channel:

```
Log::channel('logstream')->info('User signed up');

// Or add to your stack:
'stack' => [
    'driver'   => 'stack',
    'channels' => ['daily', 'logstream'],
],
```

Async logging
-------------

[](#async-logging)

Set `LOGSTREAM_ASYNC=true` in `.env`. Logs will be dispatched as queued jobs — requires a configured queue driver.

Level mapping
-------------

[](#level-mapping)

LaravelLogstream`debug``DEBUG``info`, `notice``INFO``warning``WARN``error`, `critical`, `alert`, `emergency``ERROR`

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance85

Actively maintained with recent releases

Popularity12

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

3

Last Release

78d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a930307a1b1447aa7c45084701d1024b556c84b10327cb76110627275a0d684?d=identicon)[fredrikborgstein](/maintainers/fredrikborgstein)

---

Top Contributors

[![fredrikborgstein](https://avatars.githubusercontent.com/u/48807696?v=4)](https://github.com/fredrikborgstein "fredrikborgstein (11 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/borgstein-logstream-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/borgstein-logstream-laravel/health.svg)](https://phpackages.com/packages/borgstein-logstream-laravel)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[ytake/laravel-aspect

Aspect Oriented Programming library for laravel framework, and lumen

138132.2k1](/packages/ytake-laravel-aspect)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[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)
