https://github.com/yuce/hazelcast-go-client-logger-sample
Hazelcast Go Client Custom Logger Sample
https://github.com/yuce/hazelcast-go-client-logger-sample
Last synced: 15 days ago
JSON representation
Hazelcast Go Client Custom Logger Sample
- Host: GitHub
- URL: https://github.com/yuce/hazelcast-go-client-logger-sample
- Owner: yuce
- License: apache-2.0
- Created: 2021-12-24T00:39:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-24T01:03:29.000Z (over 4 years ago)
- Last Synced: 2025-02-22T18:31:13.581Z (over 1 year ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hazelcast Go Client Logger Sample
This sample demonstrates how to use a [zap](https://github.com/uber-go/zap) custom logger for the [Hazelcast Go Client](https://github.com/hazelcast/hazelcast-go-client).
## Prerequisites
* Go 1.15 or better.
* The example uses [Hazelcast Cloud](https://cloud.hazelcast.com/), which is free to use. But it can be adapted to use an on-prem Hazelcast instance.
## Usage
1. Clone this repo:
```
git clone https://github.com/yuce/hazelcast-go-client-logger-sample
```
2. Download the dependencies:
```
go mod tidy
```
3. Update `clusterName` and `cloudToken` constants in `main.go` with the correct values.
4. Run the sample
```
go build .
./hazelcast-go-client-logger-sample
```
## License
[Apache 2 License](https://github.com/yuce/hazelcast-go-client-logger-sample/blob/master/LICENSE).
Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.