Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit ffb03db

Browse files
authored
Update README.md
1 parent eb2c4fc commit ffb03db

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@
1111

1212
## How to use
1313

14+
Add in your `logging.php` the following under `channels` tab:
15+
```
16+
'datadog' => [
17+
'driver' => 'custom',
18+
'via' => \Myli\CreateDataDogLogger::class,
19+
'apiKey' => env('DATADOG_API_KEY'),
20+
'region' => 'eu',
21+
'level' => 'debug',
22+
'bubble' => true,
23+
],
24+
```
25+
Refer to Monolog for the options, the only custom options are `region` (values can be `us|eu`) and `apiKey`
26+
1427
## License
1528

1629
The Laravel DataDog Logger is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)