logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package logger provides a logging utility that integrates with ElasticSearch and uses the logrus package for structured logging. This package initializes a singleton logger instance that can be used throughout an application for logging events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() *logrus.Logger

Logger returns the singleton instance of the logrus.Logger. It initializes the logger on the first call and starts a background goroutine to monitor the ElasticSearch connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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