Skip to content

Commit dc550d5

Browse files
committed
Update logging in Readme
1 parent 5bf3c2d commit dc550d5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Naming used here is the same as in ClickHouse docs.
2020
## Contents
2121

2222
- [Setup](#setup)
23+
- [Logging](#logging)
2324
- [Time Zones](#time-zones)
2425
- [PSR Factories who?](#psr-factories-who)
2526
- [Sync API](#sync-api)
@@ -44,7 +45,6 @@ Create a new instance of client and pass PSR factories:
4445

4546
use Http\Client\Curl\Client;
4647
use Nyholm\Psr7\Factory\Psr17Factory;
47-
use Psr\Log\NullLogger;
4848
use SimPod\ClickHouseClient\Client\PsrClickHouseClient;
4949
use SimPod\ClickHouseClient\Client\Http\RequestFactory;
5050

@@ -55,7 +55,6 @@ $clickHouseClient = new PsrClickHouseClient(
5555
new Psr17Factory,
5656
new Psr17Factory
5757
),
58-
new NullLogger(),
5958
'https://localhost:8123',
6059
[
6160
'database' => 'dbname',
@@ -66,6 +65,10 @@ $clickHouseClient = new PsrClickHouseClient(
6665
);
6766
```
6867

68+
### Logging
69+
70+
`SimPod\ClickHouseClient\Client\Http\LoggerPlugin` is available to be used with [HTTPlug PluginClient](http://docs.php-http.org/en/latest/plugins/index.html).
71+
6972
### Time Zones
7073

7174
ClickHouse does not have date times with timezones.

0 commit comments

Comments
 (0)