Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into develop
Browse files Browse the repository at this point in the history
* origin/master:
  [update] README.md for 2.x
  • Loading branch information
chanshige committed Jan 6, 2021
2 parents 52cf2e4 + 96bd859 commit 9fc7be1
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Packagist](https://img.shields.io/badge/packagist-v1.0.0-blue.svg)](https://packagist.org/packages/chanshige/laravel-query-logger)
[![Packagist](https://img.shields.io/badge/packagist-v2.0.1-blue.svg)](https://packagist.org/packages/chanshige/laravel-query-logger)
[![Build Status](https://travis-ci.com/chanshige/Laravel.QueryLogger.svg?branch=master)](https://travis-ci.com/chanshige/Laravel.QueryLogger)

# Laravel.QueryLogger
Expand All @@ -13,24 +13,31 @@ Application上で実行されるSQLクエリを全てlogへ出力します。
## Installation
with composer (require-dev)
```shell script
$ composer require --dev chanshige/laravel-query-logger:v1.0
$ composer require --dev chanshige/laravel-query-logger
```

## Usage
remove cache
```
$ php artisan clear-compiled
```

for logger (illuminate/log, monolog)
```
$ tail -f storage/log/laravel.log
```
=> Output Default Log Channel

##### When specifying any log driver
##### When specifying any log driver (option)
append to config/logging.php
```
'query_logger' => [
// logger driver or channel name
'driver' => 'stack'
]
```
[Docs](https://laravel.com/docs/7.x/logging#configuration)

## test
`$ composer tests`

## License
MIT

## Author
[chanshige](https://twitter.com/chanshige)

0 comments on commit 9fc7be1

Please sign in to comment.