go-utils/utils/log/README.md

957 B

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