承接 tinyphp-module/logger-infile 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

tinyphp-module/logger-infile

最新稳定版本:1.0

Composer 安装命令:

composer require tinyphp-module/logger-infile

包简介

Modulo logger — Guardar en archivo

README 文档

README

Instalación via composer

composer require tinyphp-module/logger-infile

Función

/** Función que guarda los logs */
function logger(
    Throwable|string $message, 
    int|null         $code     = null, 
    array|null       $metadata = null, 
    string|null      $severity = null, 
    string|null      $filepath = null, 
    int|null         $fileline = null, 
    array|null       $trace    = null, 
    bool             $echolog  = false
): void

Ejemplo

logger('Contenido no encontrado', 404, ['contenido' => 'usuarios']);

trigger_error('Prueba de error', E_USER_WARNING);

throw new Exception('Prueba de excepcion no controlada');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-18