PHPackages                             techfy/got-your-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. techfy/got-your-logs

ActiveLibrary

techfy/got-your-logs
====================

A Laravel package for logging actions to daily JSON files.

v1.0.0(1y ago)07MITPHP

Since Aug 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MdIshtiaque/got-your-logs)[ Packagist](https://packagist.org/packages/techfy/got-your-logs)[ RSS](/packages/techfy-got-your-logs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Got Your Logs
=============

[](#got-your-logs)

Got Your Logs is a Laravel package that allows you to log every action in your Laravel project. Logs are stored in daily JSON files, and the log format is customizable to fit your needs. This package is designed to be easy to use and integrate into any Laravel application.

Features
--------

[](#features)

- **Automatic Logging:** Log any action or event in your Laravel application with a simple method call.
- **Daily JSON Files:** Logs are stored in daily JSON files, making it easy to manage and review.
- **Customizable Format:** Modify the log format to include the information you need.
- **Simple Integration:** Easy to install and use in any Laravel project.

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

[](#installation)

To install the `techfy/got-your-logs` package, follow these steps:

### Step 1: Require the Package

[](#step-1-require-the-package)

You can install it using Composer:

```
composer require techfy/got-your-logs
```

### Step 2: Register the Service Provider and Facade

[](#step-2-register-the-service-provider-and-facade)

After installation, register the service provider and facade in your `config/app.php` file:

```
'providers' => [
    // Other Service Providers
    Techfy\GotYourLogs\GotYourLogsServiceProvider::class,
],

'aliases' => [
    // Other Aliases
    'GotYourLogs' => Techfy\GotYourLogs\LogFacade::class,
],
```

### Step 3: Publish the Configuration File

[](#step-3-publish-the-configuration-file)

To customize the log format and storage location, you can publish the configuration file:

```
php artisan vendor:publish --tag=config --provider="Techfy\GotYourLogs\GotYourLogsServiceProvider"
```

This will create a `config/gotyourlogs.php` file in your Laravel project.

Usage
-----

[](#usage)

### Logging an Action

[](#logging-an-action)

You can log any action or event in your Laravel application using the `GotYourLogs` facade. Here's an example of how to log a user login action:

```
use GotYourLogs;

GotYourLogs::log('UserLogin', [
    'user_id' => auth()->user()->id,
    'status' => 'success',
    'ip_address' => request()->ip(),
]);
```

### Log File Structure

[](#log-file-structure)

Logs are stored in JSON files named after the current date (e.g., `2024-08-21.json`). Each log entry includes the time, operation name, and details of the action. An example log entry might look like this:

```
{
    "time": "2024-08-21 09:15:32",
    "operation": "UserLogin",
    "details": {
        "user_id": 101,
        "status": "success",
        "ip_address": "192.168.1.10"
    }
}
```

### Customizing the Log Format

[](#customizing-the-log-format)

You can customize the log format by editing the `config/gotyourlogs.php` file. The default configuration looks like this:

```
return [
    'log_format' => [
        'time' => 'Y-m-d H:i:s',
        'operation' => '',
        'details' => '',
    ],
    'storage_path' => storage_path('logs/got-your-logs'),
];
```

- `time`: The format for the timestamp in the logs. You can modify this to match your preferred date/time format.
- `operation`: The name of the action or event being logged.
- `details`: Additional details about the action.

### Modifying the Storage Path

[](#modifying-the-storage-path)

By default, logs are stored in the `storage/logs/got-your-logs/` directory. You can change the storage path by modifying the `storage_path` key in the `config/gotyourlogs.php` file:

```
'storage_path' => storage_path('custom-logs-directory'),
```

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

[](#contributing)

Contributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or submit a pull request.

License
-------

[](#license)

Got Your Logs is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

627d ago

### Community

Maintainers

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

---

Top Contributors

[![MdIshtiaque](https://avatars.githubusercontent.com/u/88388417?v=4)](https://github.com/MdIshtiaque "MdIshtiaque (12 commits)")

### Embed Badge

![Health badge](/badges/techfy-got-your-logs/health.svg)

```
[![Health](https://phpackages.com/badges/techfy-got-your-logs/health.svg)](https://phpackages.com/packages/techfy-got-your-logs)
```

PHPackages © 2026

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