https://github.com/scolib/think-monolog
https://github.com/scolib/think-monolog
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/scolib/think-monolog
- Owner: ScoLib
- Created: 2017-01-11T06:55:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-11T07:11:30.000Z (over 9 years ago)
- Last Synced: 2025-06-07T18:08:42.194Z (about 1 year ago)
- Language: PHP
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 安装
```
composer require scolib/think-monolog:dev-master
```
### 使用
安装完成后, 就可以立即在应用的代码中这样使用 monolog:
```
\Sco\Think\Logger::debug('这是一条debug日志');
\Sco\Think\Logger::info('这是一条info日志');
\Sco\Think\Logger::warn('这是一条warn日志');
\Sco\Think\Logger::error('这是一条error日志');
```