diff options
author | kiel barry <kiel.j.barry@gmail.com> | 2018-05-22 15:28:43 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-05-22 15:28:43 +0800 |
commit | 09d44247f746b177e46754ba56ad7e9bc0bd8ef6 (patch) | |
tree | 99c3021187891fc45e098410ca5cdec8a046cd32 /log/handler.go | |
parent | 0fe47e98c4d93f952dc7415f401fd03b2664a21d (diff) | |
download | go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.gz go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.bz2 go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.lz go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.xz go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.tar.zst go-tangerine-09d44247f746b177e46754ba56ad7e9bc0bd8ef6.zip |
log: fixes for golint warnings (#16775)
Diffstat (limited to 'log/handler.go')
-rw-r--r-- | log/handler.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/log/handler.go b/log/handler.go index 41d5718dd..3c99114dc 100644 --- a/log/handler.go +++ b/log/handler.go @@ -11,8 +11,8 @@ import ( "github.com/go-stack/stack" ) +// Handler defines where and how log records are written. // A Logger prints its log records by writing to a Handler. -// The Handler interface defines where and how log records are written. // Handlers are composable, providing you great flexibility in combining // them to achieve the logging structure that suits your applications. type Handler interface { @@ -193,7 +193,7 @@ func LvlFilterHandler(maxLvl Lvl, h Handler) Handler { }, h) } -// A MultiHandler dispatches any write to each of its handlers. +// MultiHandler dispatches any write to each of its handlers. // This is useful for writing different types of log information // to different locations. For example, to log to a file and // standard error: @@ -212,7 +212,7 @@ func MultiHandler(hs ...Handler) Handler { }) } -// A FailoverHandler writes all log records to the first handler +// FailoverHandler writes all log records to the first handler // specified, but will failover and write to the second handler if // the first handler has failed, and so on for all handlers specified. // For example you might want to log to a network socket, but failover @@ -220,7 +220,7 @@ func MultiHandler(hs ...Handler) Handler { // standard out if the file write fails: // // log.FailoverHandler( -// log.Must.NetHandler("tcp", ":9090", log.JsonFormat()), +// log.Must.NetHandler("tcp", ":9090", log.JSONFormat()), // log.Must.FileHandler("/var/log/app.log", log.LogfmtFormat()), // log.StdoutHandler) // @@ -336,7 +336,7 @@ func DiscardHandler() Handler { }) } -// The Must object provides the following Handler creation functions +// Must provides the following Handler creation functions // which instead of returning an error parameter only return a Handler // and panic on failure: FileHandler, NetHandler, SyslogHandler, SyslogNetHandler var Must muster |