Skip to content

Commit 6e0f349

Browse files
committed
Modify package name
1 parent b198231 commit 6e0f349

21 files changed

+38
-38
lines changed

README.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
## Installation and usage
66

77
``` bash
8-
$ go get gopkg.in/alog.v1
8+
$ go get github.com/antlinker/alog
99
```
1010

1111
## API documentation
1212

13-
* [https://godoc.org/gopkg.in/alog.v1](https://godoc.org/gopkg.in/alog.v1)
13+
* [https://godoc.org/github.com/antlinker/alog](https://godoc.org/github.com/antlinker/alog)
1414

1515
## Configuration file
1616

@@ -23,7 +23,7 @@ $ go get gopkg.in/alog.v1
2323
level: 1,
2424
# 日志项模板
2525
item: {
26-
# 项模板
26+
# 项模板
2727
# 模板字段说明:
2828
# ID 唯一标识
2929
# Time 日志发生时间
@@ -59,7 +59,7 @@ $ go get gopkg.in/alog.v1
5959
# 1表示打印
6060
# 2表示不打印
6161
# 默认为不打印
62-
print: 2,
62+
print: 1,
6363
# 日志输出规则
6464
# 参数说明:
6565
# 0表示所有配置输出
@@ -69,29 +69,29 @@ $ go get gopkg.in/alog.v1
6969
# 默认为所有配置输出(0)
7070
rule: 0,
7171
# 日志级别
72-
level: 1,
72+
level: 1,
7373
# 输出文件信息
7474
# 1表示输出
7575
# 2表示不输出
7676
# 默认为输出(1)
7777
showfile: 1,
7878
# 文件信息调用层级
79-
# 默认为5(当前调用)
80-
caller: 5,
79+
# 默认为6(当前调用)
80+
caller: 6,
8181
# 读取缓冲区时间间隔(以秒为单位)
8282
interval: 1,
8383
# 目标存储
8484
# 指向store中定义的存储配置
85-
target: "file_global",
85+
# target: "file_global",
8686
# 缓冲区存储
87-
buffer: {
87+
# buffer: {
8888
# 存储引擎
8989
# 1表示内存存储
9090
# 2表示redis存储
91-
engine: 1,
91+
# engine: 1,
9292
# 指向store中定义的存储配置
93-
target: "redis_buffer"
94-
}
93+
# target: "redis_buffer"
94+
# }
9595
},
9696
# 标签配置
9797
tags: [{
@@ -230,7 +230,7 @@ package main
230230
import (
231231
"time"
232232

233-
"gopkg.in/alog.v1"
233+
"github.com/antlinker/alog"
234234
)
235235

236236
func main() {

alog.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"fmt"
55
"os"
66

7-
"gopkg.in/alog.v1/utils"
7+
"github.com/antlinker/alog/utils"
88

9-
"gopkg.in/alog.v1/log"
10-
"gopkg.in/alog.v1/manage"
9+
"github.com/antlinker/alog/log"
10+
"github.com/antlinker/alog/manage"
1111
)
1212

1313
// ALog 提供ALog日志模块的输出管理

buffer/memory.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"container/list"
55
"sync"
66

7-
"gopkg.in/alog.v1/log"
7+
"github.com/antlinker/alog/log"
88
)
99

1010
// NewMemoryBuffer 创建新的Memory实例

buffer/memory_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"gopkg.in/alog.v1/log"
7+
"github.com/antlinker/alog/log"
88
)
99

1010
func TestMemoryPush(t *testing.T) {

buffer/redis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55
"fmt"
66

7-
"gopkg.in/alog.v1/log"
7+
"github.com/antlinker/alog/log"
88
"gopkg.in/redis.v3"
99
)
1010

buffer/redis_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"gopkg.in/alog.v1/log"
7+
"github.com/antlinker/alog/log"
88
)
99

1010
func TestRedisPush(t *testing.T) {

config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package alog
22

3-
import "gopkg.in/alog.v1/log"
3+
import "github.com/antlinker/alog/log"
44

55
// 加载默认配置
66
func loadDefaultConfig() *log.LogConfig {

global.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package alog
22

3-
import "gopkg.in/alog.v1/log"
3+
import "github.com/antlinker/alog/log"
44

55
var (
66
// 提供全局的ALog

log/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strings"
66
"time"
77

8-
"gopkg.in/alog.v1/utils"
8+
"github.com/antlinker/alog/utils"
99
)
1010

1111
// GetDateData 获取日期数据

manage/manage.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ import (
1010
"text/template"
1111
"time"
1212

13-
"gopkg.in/alog.v1/buffer"
14-
"gopkg.in/alog.v1/log"
15-
"gopkg.in/alog.v1/store"
16-
"gopkg.in/alog.v1/utils"
13+
"github.com/antlinker/alog/buffer"
14+
"github.com/antlinker/alog/log"
15+
"github.com/antlinker/alog/store"
16+
"github.com/antlinker/alog/utils"
1717
)
1818

1919
// NewLogManage 创建新的LogManage实例

manage/manage_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package manage
33
import (
44
"testing"
55

6-
"gopkg.in/alog.v1/log"
6+
"github.com/antlinker/alog/log"
77
)
88

99
func TestConsole(t *testing.T) {

sample/console-sample/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"gopkg.in/alog.v1"
4+
"github.com/antlinker/alog"
55
)
66

77
func main() {

sample/memory-sample/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"time"
77

8-
"gopkg.in/alog.v1"
8+
"github.com/antlinker/alog"
99
)
1010

1111
const (

sample/redis-sample/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"time"
77

8-
"gopkg.in/alog.v1"
8+
"github.com/antlinker/alog"
99
)
1010

1111
const (

sample/sample/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"time"
55

6-
"gopkg.in/alog.v1"
6+
"github.com/antlinker/alog"
77
)
88

99
func main() {

store/elastic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package store
33
import (
44
"text/template"
55

6-
"gopkg.in/alog.v1/log"
6+
"github.com/antlinker/alog/log"
77
"gopkg.in/olivere/elastic.v3"
88
)
99

store/elastic_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"gopkg.in/alog.v1/log"
7+
"github.com/antlinker/alog/log"
88
)
99

1010
func TestElasticStore(t *testing.T) {

store/file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"text/template"
99

10-
"gopkg.in/alog.v1/log"
10+
"github.com/antlinker/alog/log"
1111
)
1212

1313
type _FileConfig struct {

store/file_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"gopkg.in/alog.v1/log"
7+
"github.com/antlinker/alog/log"
88
)
99

1010
func TestFileStore(t *testing.T) {

store/mongo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package store
33
import (
44
"text/template"
55

6-
"gopkg.in/alog.v1/log"
6+
"github.com/antlinker/alog/log"
77

88
"gopkg.in/mgo.v2"
99
)

store/mongo_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"testing"
55
"time"
66

7-
"gopkg.in/alog.v1/log"
7+
"github.com/antlinker/alog/log"
88
)
99

1010
func TestMongoStore(t *testing.T) {

0 commit comments

Comments
 (0)