logging

package
v0.0.0-...-c67c63b Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseLogstashConnection

func CloseLogstashConnection()

*

  • Close the connection to logstash

func GetLogger

func GetLogger() *zap.SugaredLogger

*

  • Return the logger instance connected to logstash

func InitLogger

func InitLogger()

* Instantiate a new logger that will be used for logstash * communications. *

func InitLogstashConnection

func InitLogstashConnection()

* Initialize the connection to logstash * Note: Requires the .env file to be loaded before calling this function

func SyncLogger

func SyncLogger()

*

  • Sync the logger

Types

type ISugaredLogger

type ISugaredLogger interface {
	Info(args ...interface{})
	Infof(template string, args ...interface{})
	Error(args ...interface{})
	Errorf(template string, args ...interface{})
}

Jump to

Keyboard shortcuts

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