-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sergiu
committed
Aug 28, 2024
1 parent
cd68e12
commit d943bb4
Showing
5 changed files
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Formatting Messages | ||
|
||
When using `dot-log` or `laminas-log`, the logged value is not limited to a string. Arrays can be logged as well. For better readability, these arrays can be serialized. Laminas Log provides String, XML, JSON and FirePHP formatting. | ||
When using `dot-log`, the logged value is not limited to a string. Arrays can be logged as well. For better readability, these arrays can be serialized. Dot Log provides String and JSON formatting. | ||
|
||
The formatter accepts following parameters: | ||
|
||
* name - the formatter class (it must implement `Laminas\Log\Formatter\FormatterInterface`) | ||
* name - the formatter class (it must implement `Dot\Log\Formatter\FormatterInterface`) | ||
* options - passed to the formatter constructor if required | ||
|
||
The following snippet formats the message as JSON data: | ||
|
||
'formatter' => [ | ||
'name' => \Laminas\Log\Formatter\Json::class, | ||
'name' => \Dot\Log\Formatter\Json::class, | ||
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Overview | ||
|
||
> dot-log is a wrapper on top of [laminas-log](https://github.com/laminas/laminas-log) | ||
> | ||
> ![OSS Lifecycle](https://img.shields.io/osslifecycle/laminas/laminas-log) | ||
Robust, composite logger with filtering, formatting, and PSR-3 support. |