PHPackages                             timewave/laravel-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. timewave/laravel-logger

ActiveLibrary

timewave/laravel-logger
=======================

Logging library

0.2.2(1y ago)0325MITPHPPHP ^8.0

Since Oct 11Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Timewave-AB/package-laravel-logger)[ Packagist](https://packagist.org/packages/timewave/laravel-logger)[ RSS](/packages/timewave-laravel-logger/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Timewave\\Logger
================

[](#timewavelogger)

Custom logger package for PHP applications with opinionated log levels.

Usage
-----

[](#usage)

There will always be output to `stdout`. If Open Telemetry is configured, it will be pushed there to.

### Basic usage:

[](#basic-usage)

```
$log = new CustomLogger('my-app-name');
$log->otlpHttpHost = 'http://localhost:4318';
$log->info('Something happened', ['key' => 'value']);
```

### Usage with spans

[](#usage-with-spans)

```
$log = new CustomLogger('auth-4');
$log->otlpHttpHost = 'http://localhost:4318';

$requestSpan = $log->createSpanLogger('request', ['requestId' => 'Legodalf']);

$requestSpan->verbose('Incoming request', ['method' => 'POST', 'path' => '/auth/password']);

$loginSpan = $requestSpan->createSpanLogger('login', ['username' => 'siv']);

$loginSpan->info('User is trying to login');
$userId = User::login('siv');
$loginSpan->verbose('User is logged in');

$loginSpan->endSpan();

$requestSpan->debug('Request is over');

$requestSpan->endSpan();
```

Log levels
----------

[](#log-levels)

- `error`: Apocalypse! :O
- `warning`: The chaos is near
- `info`: All is well, but this message is important
- `verbose`: Extra info, likely good in a production environment
- `debug`: A lot of detailed logs to debug your application \[default\]

Log formats
-----------

[](#log-formats)

- `json`: Outputs a string of a JSON object
- `text`: Outputs a simple string \[default\]

Open Telemetry Collector endpoint
---------------------------------

[](#open-telemetry-collector-endpoint)

A DSN string, example: ''. The target must be a protobuf endpoint.

Local development
-----------------

[](#local-development)

Either register an auto loader, or explicitly require all PHP-files in this repo, and then just start using and developing.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

Total

4

Last Release

548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31d09cc51e7f90efdf32e92d2771d413e31817dc5aa2932eed2214caa8cdfc20?d=identicon)[timewave](/maintainers/timewave)

---

Top Contributors

[![martinsiden](https://avatars.githubusercontent.com/u/15065802?v=4)](https://github.com/martinsiden "martinsiden (7 commits)")[![lilleman-tw](https://avatars.githubusercontent.com/u/142297505?v=4)](https://github.com/lilleman-tw "lilleman-tw (3 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/timewave-laravel-logger/health.svg)

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

PHPackages © 2026

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