Skip to content

Commit

Permalink
instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
abericyang@gmail.com committed Sep 19, 2019
1 parent 212f150 commit 52aef0a
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 27 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
language: go

env:
- PORT=8080

before_install:
- go get golang.org/x/sys/unix
- go get golang.org/x/lint/golint # 检测语法问题
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ GO_FILES := $(shell find . -name "*.go" -not -path "./vendor/*" -not -path ".git

checkTravis: overalls vet lint misspell staticcheck cyclo const veralls test

checkCircle: overalls vet lint misspell staticcheck cyclo const test

checkLocal: overalls vet lint misspell staticcheck cyclo const test

overalls:
Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[![GoDoc](https://godoc.org/github.com/aberic/gnomon?status.svg)](https://godoc.org/github.com/aberic/gnomon)
[![Go Report Card](https://goreportcard.com/badge/github.com/aberic/gnomon)](https://goreportcard.com/report/github.com/aberic/gnomon)
[![GolangCI](https://golangci.com/badges/github.com/aberic/gnomon.svg)](https://golangci.com/r/github.com/aberic/gnomon)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4f11995425294f42aec6a207b8aab367)](https://www.codacy.com/manual/aberic/gnomon?utm_source=github.com&utm_medium=referral&utm_content=aberic/gnomon&utm_campaign=Badge_Grade)
[![Travis (.org)](https://img.shields.io/travis/aberic/gnomon.svg?label=travis-ci%20build)](https://www.travis-ci.org/aberic/gnomon)
[![Coveralls github](https://img.shields.io/coveralls/github/aberic/gnomon.svg)](https://coveralls.io/github/aberic/gnomon?branch=master)

# Gnomon
通用go工具库

### 开发环境
* Go 1.12+
* Darwin/amd64

### 测试环境
* Go 1.11+
* Linux/x64

### 安装
``go get github.com/aberic/gnomon``

### 文档
参考 https://godoc.org/github.com/aberic/gnomon

<br><br>
22 changes: 0 additions & 22 deletions circle.yml

This file was deleted.

10 changes: 10 additions & 0 deletions log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package gnomon
import (
"errors"
"testing"
"time"
)

var logDir = "./log"
Expand Down Expand Up @@ -64,3 +65,12 @@ func TestLogCommon_Fatal(t *testing.T) {
Log().Set(Log().FatalLevel(), false)
logDo()
}

func TestLogCommon_Fatal_BigStorage(t *testing.T) {
Log().Init(logDir, 1, 1, false)
Log().Set(debugLevel, true)
for i := 0; i < 100000; i++ {
go Log().Debug("test", Log().Field("i", i), Log().Field("str", "str"), Log().Field("3", true))
}
time.Sleep(2 * time.Second)
}

0 comments on commit 52aef0a

Please sign in to comment.