go-utils/log
2017-07-11 17:33:03 +08:00
..
log_test.go add log test 2017-06-26 15:35:38 +08:00
log.go update log add date utils 2017-07-11 17:33:03 +08:00
README.md add log test 2017-06-26 15:35:38 +08:00

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/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