logrus: use lower-case in comments and examples

This commit is contained in:
Simon Eskildsen 2017-05-12 15:21:58 -04:00
parent f1444e62a8
commit acfabf31db
6 changed files with 9 additions and 6 deletions

4
doc.go
View File

@ -7,7 +7,7 @@ The simplest way to use Logrus is simply the package-level exported logger:
package main package main
import ( import (
log "github.com/Sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
func main() { func main() {
@ -21,6 +21,6 @@ The simplest way to use Logrus is simply the package-level exported logger:
Output: Output:
time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10
For a full guide visit https://github.com/Sirupsen/logrus For a full guide visit https://github.com/sirupsen/logrus
*/ */
package logrus package logrus

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
// "os" // "os"
) )

View File

@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/Sirupsen/logrus" "github.com/sirupsen/logrus"
"gopkg.in/gemnasium/logrus-airbrake-hook.v2" "gopkg.in/gemnasium/logrus-airbrake-hook.v2"
) )

View File

@ -36,4 +36,4 @@ func main() {
log.Hooks.Add(hook) log.Hooks.Add(hook)
} }
} }
``` ```

View File

@ -1,3 +1,6 @@
// The Test package is used for testing logrus. It is here for backwards
// compatibility from when logrus' organization was upper-case. Please use
// lower-case logrus and the `null` package instead of this one.
package test package test
import ( import (

View File

@ -47,7 +47,7 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
switch v := v.(type) { switch v := v.(type) {
case error: case error:
// Otherwise errors are ignored by `encoding/json` // Otherwise errors are ignored by `encoding/json`
// https://github.com/Sirupsen/logrus/issues/137 // https://github.com/sirupsen/logrus/issues/137
data[k] = v.Error() data[k] = v.Error()
default: default:
data[k] = v data[k] = v