Skip to content

Commit

Permalink
rename package path
Browse files Browse the repository at this point in the history
  • Loading branch information
尚学金 committed Apr 14, 2020
1 parent 7bc0b1c commit 0888823
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
log [![Build Status](https://travis-ci.org/arstd/log.svg?branch=master)](https://travis-ci.org/arstd/log) [![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/arstd/log) [![license](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/arstd/log/master/LICENSE)
log [![Build Status](https://travis-ci.org/omigo/log.svg?branch=master)](https://travis-ci.org/omigo/log) [![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/omigo/log) [![license](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/omigo/log/master/LICENSE)
================================================================================

`log` 提供一
Expand All @@ -9,13 +9,13 @@ csv/json/xml,同时支持 Tag(TraceId/RequestId)。
Usage
-----

安装:`go get -v -u github.com/arstd/log`
安装:`go get -v -u github.com/omigo/log`

使用:
``` go
package main

import "github.com/arstd/log"
import "github.com/omigo/log"

func main() {
log.Debugf("this is a test message, %d", 1111)
Expand Down
2 changes: 1 addition & 1 deletion examples/color.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/arstd/log"
import "github.com/omigo/log"

func execColorizedExamples() {
log.SetLevel(log.Lall)
Expand Down
2 changes: 1 addition & 1 deletion examples/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"sync"
"time"

"github.com/arstd/log"
"github.com/omigo/log"
)

func execCustomPrinterExample() {
Expand Down
2 changes: 1 addition & 1 deletion examples/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/arstd/log"
"github.com/omigo/log"
)

func execSourceFileExamples() {
Expand Down
2 changes: 1 addition & 1 deletion examples/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/arstd/log"
"github.com/omigo/log"
)

func execFormatExamples() {
Expand Down
2 changes: 1 addition & 1 deletion examples/level.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/arstd/log"
import "github.com/omigo/log"

func execLevelExamples() {
// 默认日志级别 debug
Expand Down
2 changes: 1 addition & 1 deletion examples/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/arstd/log"
"github.com/omigo/log"
)

func execChangeWriterExample() {
Expand Down
4 changes: 2 additions & 2 deletions format.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
const (
LevelToken string = "info"
TagToken = "tag"
PathToken = "/go/src/github.com/arstd/log/examples/main.go"
PackageToken = "github.com/arstd/log/examples/main.go"
PathToken = "/go/src/github.com/omigo/log/examples/main.go"
PackageToken = "github.com/omigo/log/examples/main.go"
ProjectToken = "examples/main.go"
FileToken = "main.go"
LineToken int = 88
Expand Down
4 changes: 2 additions & 2 deletions package.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ log 实现了一个像 slf4j(Simple Logging Facade for Java)
志,也可以改变日志输出位置,输出到数据库、消息队列等。
安装:
go get -v -u github.com/arstd/log
go get -v -u github.com/omigo/log
使用:
package main
import "github.com/arstd/log"
import "github.com/omigo/log"
func main() {
log.Debugf("this is a test message, %d", 1111)
Expand Down
2 changes: 1 addition & 1 deletion test/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/arstd/log"
"github.com/omigo/log"
)

func xTestPrint(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions test/deeper/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/arstd/log"
"github.com/omigo/log"
)

func TestDefaultFormat(t *testing.T) {
Expand All @@ -32,7 +32,7 @@ func TestSetFormatFile(t *testing.T) {

rand := time.Now().String()
log.Debug(rand)
if bytes.HasPrefix(buf.Bytes(), ([]byte)("<file>github.com/arstd/log/test/deeper/log_test.go</file>")) {
if bytes.HasPrefix(buf.Bytes(), ([]byte)("<file>github.com/omigo/log/test/deeper/log_test.go</file>")) {
t.FailNow()
}
}
4 changes: 2 additions & 2 deletions test/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/arstd/log"
"github.com/omigo/log"
)

func TestDefaultFormatFile(t *testing.T) {
Expand Down Expand Up @@ -35,7 +35,7 @@ func TestSetFormatFile(t *testing.T) {

rand := time.Now().String()
log.Debug(rand)
if bytes.HasPrefix(buf.Bytes(), ([]byte)("<file>github.com/arstd/log/test/log_test.go</file>")) {
if bytes.HasPrefix(buf.Bytes(), ([]byte)("<file>github.com/omigo/log/test/log_test.go</file>")) {
t.FailNow()
}

Expand Down
6 changes: 3 additions & 3 deletions test/main/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ package main
import (
g "log"

"github.com/arstd/log"
"github.com/omigo/log"
)

func main() {
arstdlog() // 大约 16w 行每秒
omigolog() // 大约 16w 行每秒

// golog() // 大约 36.5w 行每秒
}

func arstdlog() {
func omigolog() {
for i := 0; i < 200e4; i++ {
log.Print("can't load package: package lib: cannot find package `xxx` in any of")
}
Expand Down

0 comments on commit 0888823

Please sign in to comment.