arshinalbab/superlog
Composer 安装命令:
composer require arshinalbab/superlog
包简介
README 文档
README
SuperLog is a PHP logging library that provides a simple way to log messages to a file.
Installation
Install SuperLog using Composer:
composer require arshinalbab/superlog
Usage
Create an instance of the SuperLog\Logger class and use the log() method to log messages:
<?php require_once 'vendor/autoload.php'; use SuperLog\Logger; $logger = new Logger(); $logger->log('This is a log message.');
By default, the log messages are written to a file named log.txt in the current directory. You can specify a different file path in the constructor:
$logger = new Logger('path/to/log.txt');
Contributing
Contributions are welcome! If you find any issues or want to contribute to the project, please follow these steps:
- Fork the repository
- Create a new branch
- Make your changes
- Write tests for your changes
- Run the tests: vendor/bin/phpunit
- Commit your changes and push to your forked repository
- Submit a pull request
License
This project is licensed under the MIT License.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-21