From 8a67edf567d20f6aebd477be30cecfaf953f465c Mon Sep 17 00:00:00 2001 From: William Mafra Date: Tue, 22 Aug 2017 19:55:53 -0300 Subject: [PATCH] Replace ian-kent package --- .gitignore | 16 ++++++++++++++++ README.md | 6 +++--- appenders/appender.go | 4 ++-- appenders/console.go | 4 ++-- appenders/console_test.go | 2 +- appenders/fluentd.go | 4 ++-- appenders/multiple_appender.go | 4 ++-- appenders/rollingfile.go | 4 ++-- appenders/rollingfile_test.go | 2 +- layout/basic.go | 2 +- layout/basic_test.go | 2 +- layout/layout.go | 2 +- layout/pattern.go | 2 +- layout/pattern_test.go | 6 +++--- log/log.go | 4 ++-- log/log_test.go | 2 +- logger/logger.go | 6 +++--- logger/logger_test.go | 2 +- 18 files changed, 45 insertions(+), 29 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1b90de7 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/README.md b/README.md index 0a5045a..e820425 100644 --- a/README.md +++ b/README.md @@ -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! @@ -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 diff --git a/appenders/appender.go b/appenders/appender.go index 481e113..d7ba497 100644 --- a/appenders/appender.go +++ b/appenders/appender.go @@ -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 { diff --git a/appenders/console.go b/appenders/console.go index 9502135..768fc59 100644 --- a/appenders/console.go +++ b/appenders/console.go @@ -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 { diff --git a/appenders/console_test.go b/appenders/console_test.go index 5017223..6876166 100644 --- a/appenders/console_test.go +++ b/appenders/console_test.go @@ -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" diff --git a/appenders/fluentd.go b/appenders/fluentd.go index c9332d1..14c6ef2 100644 --- a/appenders/fluentd.go +++ b/appenders/fluentd.go @@ -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" ) diff --git a/appenders/multiple_appender.go b/appenders/multiple_appender.go index 0758823..ecec2a6 100644 --- a/appenders/multiple_appender.go +++ b/appenders/multiple_appender.go @@ -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 { diff --git a/appenders/rollingfile.go b/appenders/rollingfile.go index 8726a20..3e6e72d 100644 --- a/appenders/rollingfile.go +++ b/appenders/rollingfile.go @@ -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" diff --git a/appenders/rollingfile_test.go b/appenders/rollingfile_test.go index 9bc047c..78f8d9e 100644 --- a/appenders/rollingfile_test.go +++ b/appenders/rollingfile_test.go @@ -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" diff --git a/layout/basic.go b/layout/basic.go index e211367..fe8c7c2 100644 --- a/layout/basic.go +++ b/layout/basic.go @@ -2,7 +2,7 @@ package layout import ( "fmt" - "github.com/ian-kent/go-log/levels" + "github.com/pismo/go-log/levels" ) type basicLayout struct { diff --git a/layout/basic_test.go b/layout/basic_test.go index cf133b4..f91f678 100644 --- a/layout/basic_test.go +++ b/layout/basic_test.go @@ -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" ) diff --git a/layout/layout.go b/layout/layout.go index 6955287..828e909 100644 --- a/layout/layout.go +++ b/layout/layout.go @@ -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 { diff --git a/layout/pattern.go b/layout/pattern.go index ea1659e..3454cb4 100644 --- a/layout/pattern.go +++ b/layout/pattern.go @@ -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 diff --git a/layout/pattern_test.go b/layout/pattern_test.go index 9b2ce39..9777ada 100644 --- a/layout/pattern_test.go +++ b/layout/pattern_test.go @@ -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" @@ -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) diff --git a/log/log.go b/log/log.go index 7b7bafd..6c3e3d8 100644 --- a/log/log.go +++ b/log/log.go @@ -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" ) diff --git a/log/log_test.go b/log/log_test.go index b764ae2..521a992 100644 --- a/log/log_test.go +++ b/log/log_test.go @@ -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" ) diff --git a/logger/logger.go b/logger/logger.go index 8243c5d..b5a8bed 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -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 diff --git a/logger/logger_test.go b/logger/logger_test.go index 0646607..e5ef6b8 100644 --- a/logger/logger_test.go +++ b/logger/logger_test.go @@ -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" )