PHPackages                             improvit17/laravel-log-s3-driver - 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. improvit17/laravel-log-s3-driver

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

improvit17/laravel-log-s3-driver
================================

A Laravel log driver for S3

0712↑627.8%PHP

Since Jul 2Pushed 1mo agoCompare

[ Source](https://github.com/improvit17/laravel-log-s3-driver)[ Packagist](https://packagist.org/packages/improvit17/laravel-log-s3-driver)[ RSS](/packages/improvit17-laravel-log-s3-driver/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel S3 Logging Driver
=========================

[](#laravel-s3-logging-driver)

This package provides a logging driver for Laravel applications that allows logs to be written directly to S3 compatible storage in real time.

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

[](#installation)

You can install the package via composer: `composer require chrismcintosh/laravel-log-s3-driver`

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

[](#configuration)

After installing the package, you need to add the following configuration to the `config/logging.php` file channel array

Minimum Configuration

```
    's3Logger' => [
        'driver' => 'custom',
        'via' => \Chrismcintosh\LaravelLogS3Driver\LaravelLogS3Driver::class,
    ],

```

Or Sample Configuration with Options

```
    's3Logger' => [
        'driver' => 'custom',
        'via' => \Chrismcintosh\LaravelLogS3Driver\LaravelLogS3Driver::class,
        'disk' => 's3',
        'mirror_style' => 'single',
        'log_directory' => 'my/custom/logs/path'
    ],

```

Configuration Options Explained
-------------------------------

[](#configuration-options-explained)

### Disk

[](#disk)

For this to work you must have an s3 compatible disk defined in ./config/filesystems.php we are looking for the name of the disk here.

- default is `s3`

### Mirror Style

[](#mirror-style)

This will work the same way that the normal native single or daily options work in Laravel as you are used to. The key difference is single will append everything to a single `laravel.log` file while daily will name the log file with the current date and append to that.

- Options
    - `single`
    - `daily`

Default is `single`

### Directory

[](#directory)

Do you want your logs to be placed in a specific directory in your bucket? Specify that here.

Default is `logs`

Usage
-----

[](#usage)

Once configured you can make this driver your default logging channel in your .env file by changing the log channel to use s3Logger `LOG_CHANNEL=s3Logger`

Or you can use the channel as needed `Log::channel('s3Logger')->info("Test Log");`

Security
--------

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance60

Regular maintenance activity

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 69.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa0260453a68efe04cbbf27918ab532a7303150a659bb698874e75c1260cd951?d=identicon)[easylink](/maintainers/easylink)

---

Top Contributors

[![chrismcintosh](https://avatars.githubusercontent.com/u/2763551?v=4)](https://github.com/chrismcintosh "chrismcintosh (16 commits)")[![Olimbot](https://avatars.githubusercontent.com/u/5463805?v=4)](https://github.com/Olimbot "Olimbot (2 commits)")[![pdroge84](https://avatars.githubusercontent.com/u/18680053?v=4)](https://github.com/pdroge84 "pdroge84 (2 commits)")[![andyleach](https://avatars.githubusercontent.com/u/7387639?v=4)](https://github.com/andyleach "andyleach (1 commits)")[![improvit-claude](https://avatars.githubusercontent.com/u/247673755?v=4)](https://github.com/improvit-claude "improvit-claude (1 commits)")[![jrbecart](https://avatars.githubusercontent.com/u/11264667?v=4)](https://github.com/jrbecart "jrbecart (1 commits)")

### Embed Badge

![Health badge](/badges/improvit17-laravel-log-s3-driver/health.svg)

```
[![Health](https://phpackages.com/badges/improvit17-laravel-log-s3-driver/health.svg)](https://phpackages.com/packages/improvit17-laravel-log-s3-driver)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B12.8k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

2044.7M351](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2430.8M434](/packages/open-telemetry-sdk)

PHPackages © 2026

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