PHPackages                             michael-orenda/logging - 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. michael-orenda/logging

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

michael-orenda/logging
======================

Unified hybrid logging package (activity, security, and error logs) for Laravel applications.

v1.2.0(5mo ago)021MITPHPPHP &gt;=8.2CI failing

Since Dec 7Pushed 5mo agoCompare

[ Source](https://github.com/michael-orenda/logging)[ Packagist](https://packagist.org/packages/michael-orenda/logging)[ Docs](https://github.com/michael-orenda/logging)[ RSS](/packages/michael-orenda-logging/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

Michael Orenda Logging Package
==============================

[](#michael-orenda-logging-package)

Overview
--------

[](#overview)

`michael-orenda/logging` is a robust logging package for Laravel applications. It supports:

- Activity Logs
- Security Logs
- Error Logs
- Facade API
- Helper functions
- Loggable Trait for automatic logging
- Pruning &amp; archiving logs
- Event dispatching for log-related events

Features
--------

[](#features)

- Unified logging API for Activity, Security, and Error Logs.
- Automatic logging of model CRUD actions with `Loggable` trait.
- Prune old logs with the `logging:prune` command.
- Provides endpoints for admin access to logs.

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

[](#installation)

Install using Composer:

```
composer require michael-orenda/logging
```

Publish the configuration:

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

Run migrations:

```
php artisan migrate
```

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

[](#configuration)

The configuration is located in `config/logging.php`. You can set log retention policies, default severities, and other parameters.

Usage
-----

[](#usage)

You can log events using the facade:

```
Logger::activity('user_logged_in', ['user_id' => $user->id]);
Logger::security('unauthorized_access', ['ip' => $ip]);
Logger::error('payment_failed', ['order_id' => $orderId]);
```

API Endpoints
-------------

[](#api-endpoints)

- `/orenda/logs/activity`
- `/orenda/logs/security`
- `/orenda/logs/error`

These endpoints return the logs in JSON format and support pagination.

Loggable Trait
--------------

[](#loggable-trait)

To log model CRUD events, add the `Loggable` trait:

```
use Loggable;

class User extends Model
{
    use Loggable;
}
```

---

License
=======

[](#license)

MIT License

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance72

Regular maintenance activity

Popularity2

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

3

Last Release

158d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/717e442360b4b2518bad07d4b6942676841ef358236c52c8d5f5929b3d908eaa?d=identicon)[rminchrist](/maintainers/rminchrist)

---

Tags

laravelloggingpackagesecurityerrorlaravel-packageactivityaudit-logLaravel activity loglaravel-loggingevent loggingapplication-monitoringapi-loggingsystem-logslaravel security loglaravel error logcentralized logsphp logging packagesecurity auditingcompliance logs

### Embed Badge

![Health badge](/badges/michael-orenda-logging/health.svg)

```
[![Health](https://phpackages.com/badges/michael-orenda-logging/health.svg)](https://phpackages.com/packages/michael-orenda-logging)
```

###  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)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analytics, and real-time features.

17510.1k](/packages/muhammadsadeeq-laravel-activitylog-ui)[jenssegers/raven

Sentry (Raven) error monitoring integration for Laravel projects

90197.2k1](/packages/jenssegers-raven)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

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

PHPackages © 2026

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