logrusx

package module
v0.0.0-...-3f7a8ea Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 3 Imported by: 0

README

logrusx

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogField

type LogField struct {
	Key   string
	Value interface{}
}

type Logging

type Logging interface {
	Info(msg string, fields ...LogField)
	Error(msg string, fields ...LogField)
	Fatal(msg string, fields ...LogField)
	// contains filtered or unexported methods
}

func New

func New(serviceName string) (Logging, error)

Create a new logger with JSON configuration and custom service name, returns error if service name is invalid

Jump to

Keyboard shortcuts

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