hnlog

package
v0.0.0-...-bab2deb Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogger

func DefaultLogger() *logrus.Logger

DefaultLogger .

func Error

func Error(info string, fields map[string]interface{})

Error write error log.

func Info

func Info(info string, fields map[string]interface{})

Info write log info.

func NewLogger

func NewLogger() *logrus.Logger

NewLogger new logger.

func Warn

func Warn(info string, fields map[string]interface{})

Warn write warning log.

Types

type Fields

type Fields map[string]interface{}

Fields for fields.

Jump to

Keyboard shortcuts

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