Skip to content

Commit aae9f67

Browse files
authored
docs: add output example in readme (#3)
1 parent b53e385 commit aae9f67

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* [Splunk Configuration](#splunk-configuration)
1212
* [Example .env](#example-env)
1313
* [Usage](#usage)
14+
* [Output Example](#output-example)
1415
* [Bug report or Feature request](#bug-report-or-feature-request)
1516
* [Want to Contribute?](#want-to-contribute)
1617
* [Code of Conduct](#code-of-conduct)
@@ -96,6 +97,25 @@ try {
9697

9798
For more custom logging options, refer to the [Laravel Logging Documentation](https://laravel.com/docs/11.x/logging#writing-log-messages).
9899

100+
## Output Example
101+
102+
```json
103+
{
104+
"message":"This is a custom Error",
105+
"context": {
106+
"user_id":1,
107+
"name":"John Doe",
108+
"email":"john@doe.com",
109+
"is_admin":false
110+
},
111+
"level":400,
112+
"level_name":"ERROR",
113+
"channel":"Laravel",
114+
"datetime":"2025-03-05T11:35:46.111298+00:00",
115+
"extra":[]
116+
}
117+
```
118+
99119
## Bug report or Feature request
100120

101121
If you encounter a bug or have a feature request, please [create an issue](https://github.com/schauinsland/laravel-splunk-logger/issues).

0 commit comments

Comments
 (0)