承接 hpz937/logutil 相关项目开发

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

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

hpz937/logutil

Composer 安装命令:

composer require hpz937/logutil

包简介

logging utility for php

README 文档

README

Logutil is a logging utility for PHP.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have PHP installed on your machine. Also, you need to install the dependencies of the project using Composer.

Installation

You can install LogUtil via Composer. Run the following command in your project directory:

composer require hpz937/logutil

Usage

You can use the Log class from the Hpz937\Logutil namespace to log messages. Here's an example:

<?php
use Hpz937\Logutil\Log;

Log::info('This is an informational message');
Log::error('This is an error message');
?>

You can also set the log file path and the execution environment (CLI or not) using the setLogFile and setRunFromCli methods respectively.

Built With

  • adhocore/cli - Command line interface library for PHP

License

This project is licensed under the MIT License - see the LICENSE file for details

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-07