go_logger

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 5 Imported by: 0

README

go-logger

a golang library to manage logger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, attr attributes.Attributes)

func Error

func Error(message string, attr attributes.Attributes)

func Fatal

func Fatal(message string, attr attributes.Attributes)

func Info

func Info(message string, attr attributes.Attributes)

func Init

func Init(opt *Option)

func Sync

func Sync() error

func Warn

func Warn(message string, attr attributes.Attributes)

Types

type Option

type Option struct {
	ServiceName    string
	ServiceVersion string
	Environment    string
	LogLevel       string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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