Skip to content

Commit

Permalink
Update logging in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Nov 12, 2020
1 parent 5bf3c2d commit dc550d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Naming used here is the same as in ClickHouse docs.
## Contents

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

use Http\Client\Curl\Client;
use Nyholm\Psr7\Factory\Psr17Factory;
use Psr\Log\NullLogger;
use SimPod\ClickHouseClient\Client\PsrClickHouseClient;
use SimPod\ClickHouseClient\Client\Http\RequestFactory;

Expand All @@ -55,7 +55,6 @@ $clickHouseClient = new PsrClickHouseClient(
new Psr17Factory,
new Psr17Factory
),
new NullLogger(),
'https://localhost:8123',
[
'database' => 'dbname',
Expand All @@ -66,6 +65,10 @@ $clickHouseClient = new PsrClickHouseClient(
);
```

### Logging

`SimPod\ClickHouseClient\Client\Http\LoggerPlugin` is available to be used with [HTTPlug PluginClient](http://docs.php-http.org/en/latest/plugins/index.html).

### Time Zones

ClickHouse does not have date times with timezones.
Expand Down

0 comments on commit dc550d5

Please sign in to comment.