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
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-07