go-utils/utils/log
ehlxr e6c62d0bda update at 2020-07-20 10:06:17 by ehlxr 2020-07-20 10:06:17 +08:00
..
README.md add jwt tools 2018-01-24 16:37:57 +08:00
log.go 站点更新:2018-01-23 15:49:21 2018-01-23 15:49:21 +08:00
log_test.go update at 2020-07-20 10:06:17 by ehlxr 2020-07-20 10:06:17 +08:00

README.md

log

golang log library base logrus and logrus-prefixed-formatter

Usage

1. Use The glide Package Management

install glide

$ go get github.com/Masterminds/glide

$ cd $GOPATH/src/github.com/Masterminds/glide

$ make setup

or

# Mac OS
$ brew install glide

# Mac or Linux
$ curl https://glide.sh/get | sh

Binary packages are available for Mac, Linux and Windows.

install log

$ go get -u github.com/ehlxr/go-utils

$ cd $GOPATH/src/github.com/ehlxr/go-utils/utils/log

$ glide install

2. Manually add Dependencies

add dependencies

$ go get github.com/sirupsen/logrus
$ go get github.com/x-cray/logrus-prefixed-formatter

install log

$ go get -u github.com/ehlxr/go-utils