Skip to content

Commit

Permalink
Merge pull request #384 from mnzt/master
Browse files Browse the repository at this point in the history
Renaming upper-case 'Sirupsen' to 'sirupsen'
  • Loading branch information
sirupsen authored Nov 30, 2016
2 parents cf60a8c + 2e779ac commit 42b84f9
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 25 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Logrus <img src="http://i.imgur.com/hTeVwmJ.png" width="40" height="40" alt=":walrus:" class="emoji" title=":walrus:"/>&nbsp;[![Build Status](https://travis-ci.org/Sirupsen/logrus.svg?branch=master)](https://travis-ci.org/Sirupsen/logrus)&nbsp;[![GoDoc](https://godoc.org/github.com/Sirupsen/logrus?status.svg)](https://godoc.org/github.com/Sirupsen/logrus)
# Logrus <img src="http://i.imgur.com/hTeVwmJ.png" width="40" height="40" alt=":walrus:" class="emoji" title=":walrus:"/>&nbsp;[![Build Status](https://travis-ci.org/sirupsen/logrus.svg?branch=master)](https://travis-ci.org/sirupsen/logrus)&nbsp;[![GoDoc](https://godoc.org/github.com/sirupsen/logrus?status.svg)](https://godoc.org/github.com/sirupsen/logrus)

Logrus is a structured logger for Go (golang), completely API compatible with
the standard library logger. [Godoc][godoc]. **Please note the Logrus API is not
Expand Down Expand Up @@ -54,7 +54,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 @@ -65,7 +65,7 @@ func main() {
```

Note that it's completely api-compatible with the stdlib logger, so you can
replace your `log` imports everywhere with `log "github.com/Sirupsen/logrus"`
replace your `log` imports everywhere with `log "github.com/sirupsen/logrus"`
and you'll now have the flexibility of Logrus. You can customize it all you
want:

Expand All @@ -74,7 +74,7 @@ package main

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

func init() {
Expand Down Expand Up @@ -123,7 +123,7 @@ application, you can also create an instance of the `logrus` Logger:
package main

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

// Create a new instance of the logger. You can have any number of instances.
Expand Down Expand Up @@ -176,9 +176,9 @@ Logrus comes with [built-in hooks](hooks/). Add those, or your custom hook, in

```go
import (
log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
"gopkg.in/gemnasium/logrus-airbrake-hook.v2" // the package is named "aibrake"
logrus_syslog "github.com/Sirupsen/logrus/hooks/syslog"
logrus_syslog "github.com/sirupsen/logrus/hooks/syslog"
"log/syslog"
)

Expand All @@ -203,7 +203,7 @@ Note: Syslog hook also support connecting to local syslog (Ex. "/dev/log" or "/v
| [Airbrake](https://github.com/gemnasium/logrus-airbrake-hook) | Send errors to the Airbrake API V3. Uses the official [`gobrake`](https://github.com/airbrake/gobrake) behind the scenes. |
| [Airbrake "legacy"](https://github.com/gemnasium/logrus-airbrake-legacy-hook) | Send errors to an exception tracking service compatible with the Airbrake API V2. Uses [`airbrake-go`](https://github.com/tobi/airbrake-go) behind the scenes. |
| [Papertrail](https://github.com/polds/logrus-papertrail-hook) | Send errors to the [Papertrail](https://papertrailapp.com) hosted logging service via UDP. |
| [Syslog](https://github.com/Sirupsen/logrus/blob/master/hooks/syslog/syslog.go) | Send errors to remote syslog server. Uses standard library `log/syslog` behind the scenes. |
| [Syslog](https://github.com/sirupsen/logrus/blob/master/hooks/syslog/syslog.go) | Send errors to remote syslog server. Uses standard library `log/syslog` behind the scenes. |
| [Bugsnag](https://github.com/Shopify/logrus-bugsnag/blob/master/bugsnag.go) | Send errors to the Bugsnag exception tracking service. |
| [Sentry](https://github.com/evalphobia/logrus_sentry) | Send errors to the Sentry error logging and aggregation service. |
| [Hiprus](https://github.com/nubo/hiprus) | Send errors to a channel in hipchat. |
Expand Down Expand Up @@ -283,7 +283,7 @@ could do:

```go
import (
log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
)

init() {
Expand Down
2 changes: 1 addition & 1 deletion alt_exit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var testprog = []byte(`
package main
import (
"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
"flag"
"fmt"
"io/ioutil"
Expand Down
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"
)

var log = logrus.New()
Expand Down
10 changes: 8 additions & 2 deletions examples/hook/hook.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
// +build ignore
// Do NOT include the above line in your code. This is a build constraint used
// to prevent import loops in the code whilst go get'ting it.
// Read more about build constraints in golang here:
// https://golang.org/pkg/go/build/#hdr-Build_Constraints

package main

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

var log = logrus.New()
Expand Down
10 changes: 5 additions & 5 deletions hooks/syslog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
```go
import (
"log/syslog"
"github.com/Sirupsen/logrus"
logrus_syslog "github.com/Sirupsen/logrus/hooks/syslog"
"github.com/sirupsen/logrus"
logrus_syslog "github.com/sirupsen/logrus/hooks/syslog"
)

func main() {
Expand All @@ -24,8 +24,8 @@ If you want to connect to local syslog (Ex. "/dev/log" or "/var/run/syslog" or "
```go
import (
"log/syslog"
"github.com/Sirupsen/logrus"
logrus_syslog "github.com/Sirupsen/logrus/hooks/syslog"
"github.com/sirupsen/logrus"
logrus_syslog "github.com/sirupsen/logrus/hooks/syslog"
)

func main() {
Expand All @@ -36,4 +36,4 @@ func main() {
log.Hooks.Add(hook)
}
}
```
```
3 changes: 2 additions & 1 deletion hooks/syslog/syslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ package logrus_syslog

import (
"fmt"
"github.com/Sirupsen/logrus"
"log/syslog"
"os"

"github.com/sirupsen/logrus"
)

// SyslogHook to send logs via syslog.
Expand Down
3 changes: 2 additions & 1 deletion hooks/syslog/syslog_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package logrus_syslog

import (
"github.com/Sirupsen/logrus"
"log/syslog"
"testing"

"github.com/sirupsen/logrus"
)

func TestLocalhostAddAndPrint(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion hooks/test/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package test
import (
"io/ioutil"

"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
)

// test.Hook is a hook designed for dealing with logs in test scenarios.
Expand Down
2 changes: 1 addition & 1 deletion hooks/test/test_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package test
import (
"testing"

"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion json_formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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 42b84f9

Please sign in to comment.