You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added basic formatter and refactored common functions (#35)
* Added basic formatter and refactored common functions
* Added tests for basic logger and made it the default
* Fixed tests and added option to disable callback
* Removed unused import
* Setting formatter in ecto+plug tests
* Trying to fix test race condition
* Fixed testing errors
* Fixing Elixir 1.6 formatting error
Copy file name to clipboardExpand all lines: README.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,15 +21,23 @@ After adding this back-end you may also be interested in [redirecting otp and sa
21
21
22
22
## Log Format
23
23
24
-
By-default, generated JSON is compatible with
24
+
LoggerJSON provides two JSON formatters out of the box (see below for implementing your own custom formatter).
25
+
26
+
The `LoggerJSON.Formatters.BasicLogger` formatter provides a generic JSON formatted message with no vendor specific entries in the payload. A sample log entry from `LoggerJSON.Formatters.BasicLogger` looks like the following:
27
+
28
+
```json
29
+
30
+
```
31
+
32
+
The other formatter that comes with LoggerJSON is `LoggerJSON.Formatters.GoogleCloudLogger` and generates JSON that is compatible with the
0 commit comments