PHPackages                             c4studio/loggr - 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. c4studio/loggr

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

c4studio/loggr
==============

Provides an interface for storing and retrieving database stored system log messages.

v1.1.2(9y ago)032MITPHPPHP &gt;=5.3.0

Since Oct 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/c4studio/loggr)[ Packagist](https://packagist.org/packages/c4studio/loggr)[ RSS](/packages/c4studio-loggr/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Loggr
=====

[](#loggr)

---

Provides an interface for storing and retrieving database stored system log messages.

---

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

[](#installation)

Just place require new package for your laravel installation via composer.json

```
"c4studio/loggr": "1.0.*"

```

Then simply `composer update`

### Registering to use it with laravel

[](#registering-to-use-it-with-laravel)

Add following lines to `app/config/app.php`

ServiceProvider array

```
C4studio\Loggr\LoggrServiceProvider::class,
```

Alias array

```
'Loggr' => C4studio\Loggr\Facades\Loggr::class,
```

### Publishing migrations (Laravel 5.2 and lower only)

[](#publishing-migrations-laravel-52-and-lower-only)

```
php artisan vendor:publish --provider="C4studio\Loggr\LoggrServiceProvider" --tag=migrations

```

### Running migrations

[](#running-migrations)

Loggr uses a database table for storage, so you'll need to run the migrations

```
php artisan migrate

```

Usage
-----

[](#usage)

### Add log message using facade

[](#add-log-message-using-facade)

```
Loggr::add('Message');
```

You can specify the owner using the second parameter which accepts either a User model or a user ID

```
Loggr::add('Message', Auth::user());
```

You can also add any additional data as a 3rd parameter, which will be stored in a binary type column

```
Loggr::add('Message', Auth::user(), serialize($myArray));
```

### Add log message using helper function

[](#add-log-message-using-helper-function)

```
loggr('Message');
```

As in the case of the facade, you can specify the owner using the second parameter

```
loggr('Message', Auth::user());
```

### Retrieving log messages

[](#retrieving-log-messages)

To get all log messages use

```
Loggr::get();
```

You can also easily get log messages belonging to a user

```
Loggr::owner(Auth::user());
```

or between two dates

```
Loggr::interval(\Carbon\Carbon::yesterday(), \Carbon\Carbon::today());
```

If you want to only set starting or end date, just leave off parameter or pass in null

```
Loggr::interval(\Carbon\Carbon::yesterday());
Loggr::interval(null, \Carbon\Carbon::yesterday());
```

For more complex queries, you can return a Builder object by using query(). Easy, right?

```
Loggr::query()->orderBy('timestamp', 'desc')->take(2)->get();
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

3302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/898ce9c81a1d57129720d54f435c1439dde51a6a04c402172cc96881ca036c7c?d=identicon)[further](/maintainers/further)

### Embed Badge

![Health badge](/badges/c4studio-loggr/health.svg)

```
[![Health](https://phpackages.com/badges/c4studio-loggr/health.svg)](https://phpackages.com/packages/c4studio-loggr)
```

###  Alternatives

[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

582.4M8](/packages/open-telemetry-opentelemetry-auto-laravel)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14844.4k1](/packages/guanguans-laravel-exception-notify)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)

PHPackages © 2026

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