定制 oneawebmarketing/loghub-laravel 二次开发

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

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

oneawebmarketing/loghub-laravel

最新稳定版本:1.0.0

Composer 安装命令:

composer require oneawebmarketing/loghub-laravel

包简介

Laravel Wrapper for LogHub.cloud

README 文档

README

LogHub is a cloud logging platform to aggregate your logs from all your projects.

Installing

The recommended way to install LogHub PHP is through Composer.

composer require oneawebmarketing/loghub-laravel

Activation

In your bootstrap/app.php add the LogHubExceptionsHandler to your Exception Handlers

<?php

use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use LogHub\LogHubExceptionsHandler;

return Application::configure(basePath: dirname(__DIR__))
    ->withRouting(
        web: __DIR__.'/../routes/web.php',
        commands: __DIR__.'/../routes/console.php',
        health: '/up',
    )
    ->withMiddleware(function (Middleware $middleware) {
        //
    })
    ->withExceptions(function (Exceptions $exceptions) {
        LogHubExceptionsHandler::handles($exceptions);
    })->create();

.env file and configuration

Provide your LogHub.cloud API Key in your .env with the key LOGHUB_API_KEY

By default the plugin will be sending Logs to LogHub if in local and production environment but feel free to change this as you like.

For this you can use the below artisan command and choose LogHub\ServiceProvider.

php artisan vendor:publish

Set the desired environments in config/loghub.php.

Security

If you discover a security vulnerability within this package, please send an email to security@loghub.cloud. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced.

License

This repository is made available under the MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-22