Browse Source

logrus: use lower-case in comments and examples

tags/v1.0.0
Simon Eskildsen 2 years ago
parent
commit
acfabf31db
6 changed files with 9 additions and 6 deletions
  1. 2
    2
      doc.go
  2. 1
    1
      examples/basic/basic.go
  3. 1
    1
      examples/hook/hook.go
  4. 1
    1
      hooks/syslog/README.md
  5. 3
    0
      hooks/test/test.go
  6. 1
    1
      json_formatter.go

+ 2
- 2
doc.go View File

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

+ 1
- 1
examples/basic/basic.go View File

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

+ 1
- 1
examples/hook/hook.go View File

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

+ 1
- 1
hooks/syslog/README.md View File

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

+ 3
- 0
hooks/test/test.go View File

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

+ 1
- 1
json_formatter.go View File

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

Loading…
Cancel
Save