定制 logsentrydev/logsentry-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

logsentrydev/logsentry-laravel

最新稳定版本:v0.0.1

Composer 安装命令:

composer require logsentrydev/logsentry-laravel

包简介

LogSentry integration for Laravel

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

LogSentry.dev 👋

Effortless log management—store, search, and secure your logs with ease!

Effortlessly collect, monitor, and secure your logs in real time—we store them for you! Search live data, get full audit context, and safely archive logs with encryption. Need old logs? Restore them in a click! 🚀🔎🔒

Important

You’ll need an account and API key to get started—sign up and start logging in minutes! 🔑🚀

Features

  • 🚀 Seamless Log Collection – Easily gather logs from any app that can send a POST request. No complex setup required!
  • 🔎 Real-Time Search & Monitoring – Instantly filter, search, and track your logs as they happen. Stay ahead of issues before they escalate!
  • 🛡️ Complete Audit Trail – Collect valuable context with every log entry, making audits and debugging a breeze.
  • 🔒 Secure Log Archiving – Encrypt and store old logs safely, ensuring compliance and long-term accessibility.
  • ♻️ Instant Log Restoration – Need past logs? Restore them from the archive anytime with just a few clicks!

Installation

You can install the package via composer:

composer require logsentrydev/logsentry-laravel

You can publish the config file with:

php artisan vendor:publish --tag="logsentry-config"

This is the contents of the published config file:

return [
    'secret' => env('LOGSENTRY_SECRET'),
    'endpoint' => env('LOGSENTRY_ENDPOINT', 'https://logsentry.dev/api/v1/event'),
];

Usage

Note

In order to use this package you need a free LogSentry account. You also need to create an API key under your account.

  1. Add the following to the channels key in your config/logging.php file
use LogSentry\Laravel\LogSentryLogHandler;

...

'channels' => [
    'logsentry' => [
        'driver'  => 'monolog',
        'handler' => LogSentryLogHandler::class,
        'with' => [
        ],
    ],

    ....
],
  1. Set your logging channel to logsentry in your .env file.
LOG_CHANNEL=logsentry
  1. Add your API key to your .env file. For example:
LOGSENTRY_SECRET="1|APl3KOP8vKDRuNS2SwvCEjn3whO6lXWODlPOz9b44e9daf29"

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固