Skip to content

Commit

Permalink
Replace ian-kent package
Browse files Browse the repository at this point in the history
  • Loading branch information
willmafra committed Aug 22, 2017
1 parent 4fb203a commit 8a67edf
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 29 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.idea
.idea/**
iso8583.iml
bin/**
pkg/**
application
iso8583
ebpkg*

# Elastic Beanstalk Files
.elasticbeanstalk/**
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml

# Dependencies
vendor
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Go-Log
======

[![Build Status](https://travis-ci.org/ian-kent/go-log.svg?branch=master)](https://travis-ci.org/ian-kent/go-log)
[![Build Status](https://travis-ci.org/pismo/go-log.svg?branch=master)](https://travis-ci.org/pismo/go-log)

A logger, for Go!

Expand All @@ -23,14 +23,14 @@ You can disable the fix by setting ExitOnFatal to false, e.g.
Install go-log:

```
go get github.com/ian-kent/go-log/log
go get github.com/pismo/go-log/log
```

Use the logger in your application:

```
import(
"github.com/ian-kent/go-log/log"
"github.com/pismo/go-log/log"
)
// Pass a log message and arguments directly
Expand Down
4 changes: 2 additions & 2 deletions appenders/appender.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Satisfy the Appender interface to implement your own log appender.
*/

import (
"github.com/ian-kent/go-log/layout"
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/layout"
"github.com/pismo/go-log/levels"
)

type Appender interface {
Expand Down
4 changes: 2 additions & 2 deletions appenders/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package appenders

import (
"fmt"
"github.com/ian-kent/go-log/layout"
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/layout"
"github.com/pismo/go-log/levels"
)

type consoleAppender struct {
Expand Down
2 changes: 1 addition & 1 deletion appenders/console_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package appenders

import (
"bytes"
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
"github.com/stretchr/testify/assert"
"io"
"os"
Expand Down
4 changes: 2 additions & 2 deletions appenders/fluentd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package appenders
// TODO add tests

import (
"github.com/ian-kent/go-log/layout"
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/layout"
"github.com/pismo/go-log/levels"
"github.com/t-k/fluent-logger-golang/fluent"
)

Expand Down
4 changes: 2 additions & 2 deletions appenders/multiple_appender.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package appenders

import (
"github.com/ian-kent/go-log/layout"
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/layout"
"github.com/pismo/go-log/levels"
)

type multipleAppender struct {
Expand Down
4 changes: 2 additions & 2 deletions appenders/rollingfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package appenders

import (
"fmt"
"github.com/ian-kent/go-log/layout"
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/layout"
"github.com/pismo/go-log/levels"
"os"
"strconv"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion appenders/rollingfile_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package appenders

import (
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
"github.com/stretchr/testify/assert"
"os"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion layout/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package layout

import (
"fmt"
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
)

type basicLayout struct {
Expand Down
2 changes: 1 addition & 1 deletion layout/basic_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package layout

import (
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion layout/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Satisfy the Layout interface to implement your own log layout.
*/

import (
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
)

type Layout interface {
Expand Down
2 changes: 1 addition & 1 deletion layout/pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
)

// http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
Expand Down
6 changes: 3 additions & 3 deletions layout/pattern_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package layout

import (
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
"github.com/stretchr/testify/assert"
"testing"
//"os"
Expand Down Expand Up @@ -32,8 +32,8 @@ func TestPattern(t *testing.T) {

p = Pattern("%F")
assert.NotNil(t, p)
//assert.Equal(t, p.Format(levels.DEBUG, ""), os.Getenv("GOPATH") + "/src/github.com/ian-kent/go-log/layout/pattern_test.go")
//assert.Equal(t, p.Format(levels.DEBUG, "foo"), os.Getenv("GOPATH") + "/src/github.com/ian-kent/go-log/layout/pattern_test.go")
//assert.Equal(t, p.Format(levels.DEBUG, ""), os.Getenv("GOPATH") + "/src/github.com/pismo/go-log/layout/pattern_test.go")
//assert.Equal(t, p.Format(levels.DEBUG, "foo"), os.Getenv("GOPATH") + "/src/github.com/pismo/go-log/layout/pattern_test.go")

p = Pattern("%l")
assert.NotNil(t, p)
Expand Down
4 changes: 2 additions & 2 deletions log/log.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package log

import (
"github.com/ian-kent/go-log/levels"
"github.com/ian-kent/go-log/logger"
"github.com/pismo/go-log/levels"
"github.com/pismo/go-log/logger"
"strings"
)

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

import (
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down
6 changes: 3 additions & 3 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"strings"

"github.com/ian-kent/go-log/appenders"
"github.com/ian-kent/go-log/layout"
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/appenders"
"github.com/pismo/go-log/layout"
"github.com/pismo/go-log/levels"
)

// Logger represents a logger
Expand Down
2 changes: 1 addition & 1 deletion logger/logger_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package logger

import (
"github.com/ian-kent/go-log/levels"
"github.com/pismo/go-log/levels"
"github.com/stretchr/testify/assert"
"testing"
)
Expand Down

0 comments on commit 8a67edf

Please # to comment.