logger

package
v0.0.0-...-3a05e6f Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, msg string)

func Error

func Error(ctx context.Context, err error)

TODO: Use Library

func Info

func Info(ctx context.Context, msg string)

func LogService

func LogService(ctx context.Context, serviceName string, err error)

func Warn

func Warn(ctx context.Context, msg string)

Types

type ConsoleLog

type ConsoleLog struct {
	Level         LogLevel `json:"level"`
	CorrelationID string   `json:"correlationID"`
	Message       string   `json:"message"`
}

type LogLevel

type LogLevel string
const (
	LogLevelError LogLevel = "Error"
	LogLevelWarn  LogLevel = "Warn"
	LogLevelInfo  LogLevel = "Info"
	LogLevelDebug LogLevel = "Debug"
)

Jump to

Keyboard shortcuts

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