Skip to content

Commit

Permalink
logrus: use lower-case in comments and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sirupsen committed May 12, 2017
1 parent 9ea5178 commit 6383c94
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The simplest way to use Logrus is simply the package-level exported logger:
package main
import (
log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
)
func main() {
Expand All @@ -21,6 +21,6 @@ The simplest way to use Logrus is simply the package-level exported logger:
Output:
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
2 changes: 1 addition & 1 deletion examples/basic/basic.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
// "os"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/hook/hook.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
"gopkg.in/gemnasium/logrus-airbrake-hook.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion hooks/syslog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ func main() {
log.Hooks.Add(hook)
}
}
```
```
3 changes: 3 additions & 0 deletions hooks/test/test.go
Original file line number Diff line number Diff line change
@@ -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

import (
Expand Down
2 changes: 1 addition & 1 deletion json_formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) {
switch v := v.(type) {
case error:
// 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()
default:
data[k] = v
Expand Down

0 comments on commit 6383c94

Please sign in to comment.