Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi-anik committed Aug 5, 2023
1 parent 64a70d7 commit 4ab3c55
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ $options = [
* `\Loguzz\Formatter\ExceptionJsonFormatter`
- `tag` - **string**. **Empty** by default. When non-empty string, it'll log the formatted data under this tag. Tag can
be used to search for specific type of request/response in your log file or your storage.
- `force_json` - **bool**. It is only applicable when **tag** is non-empty string. If enabled, it will then log data as
json string, otherwise it'll log as an array.
- `force_json` - **bool**. **true** by default. It is only applicable when **tag** is non-empty string. If enabled, it
will then log data as
json string, otherwise it'll log as an array. **If set to** `false`, **the code may break due to the type-hint in
psr/log interface. If
your [logger interface supports array](https://github.com/laravel/framework/blob/dd5c5178274e64d0384dc30bf2c8139b00dba098/src/Illuminate/Log/Logger.php#L260),
it will work.**
- `separate` - **bool**. It is only applicable when **tag** is non-empty string. If enabled, it will then log data
in `{tag}.request`, `{tag}.success`, `{tag}.failure` for request logging, successful response and error response.

Expand Down

0 comments on commit 4ab3c55

Please sign in to comment.