PHPackages                             developers-studio/logs - 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. developers-studio/logs

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

developers-studio/logs
======================

By using this package you can maintain your project activity, exception and request logs"

02PHP

Since Apr 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/latif165/logs)[ Packagist](https://packagist.org/packages/developers-studio/logs)[ RSS](/packages/developers-studio-logs/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Logs (Activity, Request and Exceptions)
===============================================

[](#laravel-logs-activity-request-and-exceptions)

This package will helps you to main your project exception, activity and request logs.

Prerequisites
-------------

[](#prerequisites)

php 8.0 =&lt; laravel 7 =&lt;

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

[](#installation)

Use the composer package manager to install this package.

```
composer require developers-studio/logs
```

Register Service Provider
-------------------------

[](#register-service-provider)

```
// config/app.php
'providers' => [
    ...
    Ds\Logs\LogsServiceProvider::class
]
```

If you are using laravel 7 or 8 then you have no need to add middleware in app/Http/Kernal.php or if you are using laravel 9 then you have to add it.

```
// app/Http/Kernal.php
'api' => [
     ...
     \Ds\Logs\Http\Middleware\RequestLog::class
],
```

Run migrations
--------------

[](#run-migrations)

```
php artisan migrate
```

Usage
-----

[](#usage)

Request Logs
------------

[](#request-logs)

It will automatically store request and response. For listing of request logs use the following command.

```
// Call the package model
// use Ds\Logs\Models\ApiRequestLog;
 ApiRequestLog::all(); or ApiRequestLog::paginate();
```

Activity Logs
-------------

[](#activity-logs)

For storing activity log

```
public function FuncationName() {
 LogActivity::info('Activity Subject will be here!');
}
```

For listing activity logs

```
// Call package model (ActivityLog)
// use Ds\Logs\Models\ActivityLog;
ActivityLog::all(); or ActivityLog::paginate();
```

Exception Logs
--------------

[](#exception-logs)

For storing exception logs

```
// import class LogException
// use Ds\Logs\Helpers\LogException;
public function FunctionName(){
  try {
     ...
     ...
  } catch (\Exception $e) {
    return LogException::store(__METHOD__, $e, __FUNCTION__);
  }
}
```

For listing of exception logs

```
// import class ExceptionLogs
// use Ds\Logs\Models\ExceptionLogs;
ExceptionLogs::all(); or ExceptionLogs::paginate();
```

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License
-------

[](#license)

[MIT](https://github.com/latif165/logs/blob/main/LICENSE)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44716334?v=4)[Muhammad Latif](/maintainers/latif165)[@latif165](https://github.com/latif165)

---

Top Contributors

[![latif165](https://avatars.githubusercontent.com/u/44716334?v=4)](https://github.com/latif165 "latif165 (7 commits)")

### Embed Badge

![Health badge](/badges/developers-studio-logs/health.svg)

```
[![Health](https://phpackages.com/badges/developers-studio-logs/health.svg)](https://phpackages.com/packages/developers-studio-logs)
```

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

1941.5M275](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M341](/packages/open-telemetry-sdk)

PHPackages © 2026

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