Skip to content

Commit

Permalink
修改readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjunjie committed Jan 29, 2022
1 parent 99a2e9e commit cfa0ff4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ go get -u github.com/doubility/remote-log-go

可拷贝 examples 中的例子

logger/logger.go (根据情况替换 [应用名称])

**重点:Logger 申明为全局变量,初始化一次!!!**

logger/logger.go (根据情况替换 [应用名称])

```go
package logger

import (
remote_log_go "github.com/doubility/remote-log-go"
"log"

remote_log_go "github.com/doubility/remote-log-go"
)

var Logger *remote_log_go.Logger
Expand Down

0 comments on commit cfa0ff4

Please sign in to comment.