Categorygithub.com/ap-in-git/go-coralogix-sdk
modulepackage
1.0.2
Repository: https://github.com/ap-in-git/go-coralogix-sdk.git
Documentation: pkg.go.dev

# README

Coralogix Go SDK

goreportcard godoc license Build Status codecov Maintainability Test Coverage GitHub issues GitHub pull requests GitHub contributors

This package provides logging suites integrated with Coralogix logs analytics platform. For watch how to use it, please, read Coralogix Go SDK Docs.

# Functions

GetTimeSync synchronize logs time with Coralogix servers time.
MessageToString convert log content to simple string.
NewBulk initialize new logs bulk.
NewCoralogixHook build Coralogix logger hook.
NewCoralogixLogger initialize new SDK interface instance.
NewCoralogixLoggerWithCategory initialize new SDK interface instance with custom category.
NewLoggerManager configure new logger manager instance.
SendRequest send logs data to Coralogix server.
SetDebug enable/disable internal logger.

# Constants

Default private key.
Bulk send interval in fast mode.
Number of attempts to retry HTTP request.
Interval between failed http post requests.
Default HTTP timeout.
Default category for log record.
Coralogix logs url endpoint.
Maximum log buffer size (default=128MiB).
Maximum chunk size (default=1.5MiB).
Default application name.
Bulk send interval in normal mode.
Default subsystem name.
SDK_VERSION contains Coralogix Go SDK version.
Time synchronization interval (in minutes).
Timeout for time-delay request.
Coralogix time delay url endpoint.

# Variables

DebugLogger is the internal logger (disabled by default).
Level is a list with default logs levels values.

# Structs

Bulk describe logs batch format for Coralogix API.
CoralogixLogger is interface for using SDK.
Credentials is the container for Coralogix data.
Hook is presenting Coralogix Logger for Logrus library.
Log describe record format for Coralogix API.
LoggerManager is a logs buffer operations manager.
SeveritiesList describe logs levels values.