Skip to content

Commit

Permalink
Docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
EldarAliiev committed Mar 31, 2021
1 parent 61b4c88 commit 74e7028
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2019 Coralogix Ltd.
Copyright 2021 Coralogix Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Coralogix Go SDK

[![goreportcard](https://goreportcard.com/badge/github.com/coralogix/go-coralogix-sdk)](https://goreportcard.com/report/github.com/coralogix/go-coralogix-sdk)
[![godoc](https://img.shields.io/badge/godoc-reference-brightgreen.svg?style=flat)](https://godoc.org/github.com/coralogix/go-coralogix-sdk)
[![Go Reference](https://pkg.go.dev/badge/github.com/coralogix/go-coralogix-sdk.svg)](https://pkg.go.dev/github.com/coralogix/go-coralogix-sdk)
[![license](https://img.shields.io/github/license/coralogix/go-coralogix-sdk.svg)](https://raw.githubusercontent.com/coralogix/go-coralogix-sdk/master/LICENSE)
[![Build Status](https://travis-ci.org/coralogix/go-coralogix-sdk.svg?branch=master)](https://travis-ci.org/coralogix/go-coralogix-sdk)
[![codecov](https://codecov.io/gh/coralogix/go-coralogix-sdk/branch/master/graph/badge.svg)](https://codecov.io/gh/coralogix/go-coralogix-sdk)
Expand Down
60 changes: 30 additions & 30 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,45 +31,45 @@ The simple example:
If you want to use Coralogix SDK with Logrus logging library:
package main
import (
coralogix "github.com/coralogix/go-coralogix-sdk"
"github.com/sirupsen/logrus"
)
func main() {
CoralogixHook := coralogix.NewCoralogixHook(
"YOUR_PRIVATE_KEY_HERE",
"YOUR_APPLICATION_NAME",
"YOUR_SUBSYSTEM_NAME",
package main
import (
coralogix "github.com/coralogix/go-coralogix-sdk"
"github.com/sirupsen/logrus"
)
defer CoralogixHook.Close()
log := logrus.New()
log.SetLevel(logrus.DebugLevel)
func main() {
CoralogixHook := coralogix.NewCoralogixHook(
"YOUR_PRIVATE_KEY_HERE",
"YOUR_APPLICATION_NAME",
"YOUR_SUBSYSTEM_NAME",
)
defer CoralogixHook.Close()
log := logrus.New()
log.SetLevel(logrus.DebugLevel)
log.AddHook(CoralogixHook)
log.AddHook(CoralogixHook)
log.Info("Test message!")
log.WithFields(logrus.Fields{
"Category": "MyCategory",
"ClassName": "MyClassName",
"MethodName": "MyMethodName",
"ThreadId": "MyThreadId",
}).Info("Test message 2!")
log.WithFields(logrus.Fields{
"extra": "additional",
}).Info("Test message 3!")
log.Debug("Test message 4!")
log.Fatal("Test message 5!")
}
log.Info("Test message!")
log.WithFields(logrus.Fields{
"Category": "MyCategory",
"ClassName": "MyClassName",
"MethodName": "MyMethodName",
"ThreadId": "MyThreadId",
}).Info("Test message 2!")
log.WithFields(logrus.Fields{
"extra": "additional",
}).Info("Test message 3!")
log.Debug("Test message 4!")
log.Fatal("Test message 5!")
}
For a source watch https://github.com/coralogix/go-coralogix-sdk
Copyright 2019 Coralogix Ltd. All rights reserved.
Copyright 2021 Coralogix Ltd. All rights reserved.
Use of this source code is governed by a Apache 2.0
license that can be found in the LICENSE file.
*/
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package coralogix

// sdkVersion contains Coralogix Go SDK version
const sdkVersion = "1.0.1"
const sdkVersion = "1.0.2"

0 comments on commit 74e7028

Please sign in to comment.