log

package module
v0.0.0-...-d98f8e8 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 9 Imported by: 0

README

Log

log for golang

Documentation

Index

Constants

View Source
const DefaultTimestampFormat = "2006-01-02 15:04:05.000"

Variables

This section is empty.

Functions

func Init

func Init(options ...Option) error

func Logger

func Logger() *logrus.Logger

Types

type NullFormatter

type NullFormatter struct {
}

func (*NullFormatter) Format

func (n *NullFormatter) Format(_ *logrus.Entry) ([]byte, error)

type Option

type Option interface {
	// contains filtered or unexported methods
}

func StandardOption

func StandardOption(env string) Option

func WriteToFileOption

func WriteToFileOption(dir string) Option

type OptionFunc

type OptionFunc func(*logrus.Logger) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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