logging

package
v0.0.0-...-936a01b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package logging contains implementation of various logging strategies. Currently supported strategy includes logging into Splunk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ClientImpl *splunk.Client
}

Client represents a Splunk client instance.

func NewClient

func NewClient(enabled bool, address, token, source, sourceType, index string) Client

NewClient creates a new instance of Splunk client.

func (Client) Log

func (client Client) Log(key, value string) error

Log add a new message into the Splunk log.

func (Client) LogAction

func (client Client) LogAction(action, user, description string) error

LogAction add a new message about performed action into the Splunk log.

func (Client) LogTriggerAction

func (client Client) LogTriggerAction(action, user, cluster, trigger string) error

LogTriggerAction add a new message about performed trigger-related action into the Splunk log.

func (Client) LogWithTime

func (client Client) LogWithTime(time int64, key, value string) error

LogWithTime add a new message with timestamp into the Splunk log.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL