Download the PHP package kriss/webman-logger without Composer

On this page you can find all versions of the php package kriss/webman-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package webman-logger

webman-tech/logger

本项目是从 webman-tech/components-monorepo 自动 split 出来的,请勿直接修改

简介

webman 日志统筹化管理插件,基于 Monolog 实现,旨在解决 webman 原生日志配置的一些不便之处:

  1. 日志量较大时需要分 channel 管理,但每个 channel 都需要单独定义,维护困难
  2. 通过字符串 channel 名调用时容易拼写错误导致日志记录失败
  3. 没有充分利用 Monolog 的 formatter 和 processor 功能

本插件针对多 channel 模式进行统筹优化管理。

功能特性

安装

核心组件

Logger 主类

Logger 通过静态方法连接多个日志通道,负责将调用转发到指定通道(__callStatic())、生成 config/log.php 所需的 handler 配置(getLogChannelConfigs()),以及释放 handler 和文件句柄等资源(reset()/close())。

LogChannelManager

LogChannelManager 将 channel、mode、processor、level 组合起来,为每个 channel 的每个 mode 生成对应 handler,根据 levels.default/special 决定日志级别,并对 mode 实例进行缓存避免重复实例化。

模式(Mode)

模式本质是 Monolog Handler 的包装,带有统一的 enable/only_channels/except_channels/formatter 配置:

格式化器(Formatter)

处理器(Processor)

内置多个 Processor,均可自由组合:

HTTP 日志工具

HttpRequestMessage 与 HttpRequestLogMiddleware

HttpRequestMessage 记录 Web 请求生命周期(耗时、方法、路径、Query、Body、响应/异常),并根据 logMinTimeMS/warningTimeMS/errorTimeMS 自动调整日志等级,支持跳过路径、敏感字段遮蔽、请求体大小限制、附加信息等钩子。HttpRequestLogMiddleware 即插即用,支持通过环境变量覆盖配置。

HttpClient 请求日志

两者均内置时间分级、请求/响应体截断、单次请求覆盖 logger、附加信息等能力。

EloquentSQLMessage

EloquentSQLMessage 记录 SQL 日志,支持按 SQL 或正则忽略语句,并按耗时自动输出 INFO/WARNING/ERROR 等级。

AI 辅助


All versions of webman-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
monolog/monolog Version ^1.0 || ^2.0 || ^3.0
symfony/clock Version >=6.2
webman-tech/common-utils Version ^5.0 || dev-main
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kriss/webman-logger contains the following files

Loading the files please wait ...