Skip to content

Commit

Permalink
v0.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gotoeasy committed Sep 6, 2024
1 parent 4429f95 commit 7a646ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<br>

<p align="center">
<a href="https://golang.google.cn"><img src="https://img.shields.io/badge/golang-1.21.4-brightgreen.svg"></a>
<a href="https://golang.google.cn"><img src="https://img.shields.io/badge/golang-1.23.1-brightgreen.svg"></a>
<a href="https://hub.docker.com/r/gotoeasy/glc"><img src="https://img.shields.io/docker/pulls/gotoeasy/glc"></a>
<a href="https://github.com/gotoeasy/glogcenter/releases/latest"><img src="https://img.shields.io/github/release/gotoeasy/glogcenter.svg"></a>
<a href="https://github.com/gotoeasy/glogcenter/blob/master/LICENSE"><img src="https://img.shields.io/github/license/gotoeasy/glogcenter"></a>
Expand Down Expand Up @@ -149,7 +149,7 @@ curl -X POST -d '{"system":"demo", "date":"2023-01-01 01:02:03.456","text":"demo
<dependency>
<groupId>top.gotoeasy</groupId>
<artifactId>glc-logback-appender</artifactId>
<version>0.16.0</version>
<version>0.17.0</version>
</dependency>
```

Expand Down Expand Up @@ -227,7 +227,7 @@ func main() {
// 这里用手动初始化替代环境变量自动配置方式,更多选项详见GlcOptions字段说明
cmn.SetGlcClient(cmn.NewGlcClient(&cmn.GlcOptions{
ApiUrl: "http://ip:port/glc/v1/log/add",
Enable: true,
Enable: "true",
}))

cmn.Debug("这是Debug级别日志")
Expand Down Expand Up @@ -299,6 +299,7 @@ docker run -d -p --log-driver=fluentd --log-opt fluentd-address=192.168.169.170:

- [x] 零侵入支持`docker`容器日志、文件等各种日志的收集
- [x] 增加接口 `/glc/v1/log/addBatch`,支持一次接收多条日志
- [x] 升级使用`Go1.23.1`进行编译

### 版本`0.16.0`

Expand Down
2 changes: 1 addition & 1 deletion glc/ldb/storage/logdata/logdata_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (s *LogDataStorage) readyGo() {

// 索引生成完成后,等待接收保存日志
if n < 1 {
cmn.Info("空闲等待接收日志")
cmn.Debug("空闲等待接收日志")
data := <-s.storeChan // 没有索引可生成时,等待storeChan
s.wg.Done()
if data == nil {
Expand Down

0 comments on commit 7a646ff

Please sign in to comment.