auula / sprout Goto Github PK
View Code? Open in Web Editor NEWGolang logging library supporting log retrieval.
License: MIT License
Golang logging library supporting log retrieval.
License: MIT License
goroutine 1 [running]:
github.com/higker/logker.(*timeZone).localTime(0xc000092080, 0x502eb8, 0xa33de0, 0xb62e20)
D:/GoWroks/pkg/mod/github.com/higker/[email protected]/time.go:71 +0x128
github.com/higker/logker.(*timeZone).NowTimeStr(0xc000092080, 0x80, 0xc0000c0080)
D:/GoWroks/pkg/mod/github.com/higker/[email protected]/time.go:53 +0x32
github.com/higker/logker.(*fileLog).pack(0xc00009a080, 0x3, 0xc0000c0080, 0x7c, 0x1)
D:/GoWroks/pkg/mod/github.com/higker/[email protected]/message.go:25 +0x3a
github.com/higker/logker.(*fileLog).Error(0xc00009a080, 0xb8f9f5, 0x19, 0xc000092090, 0x1, 0x1)
D:/GoWroks/pkg/mod/github.com/higker/[email protected]/file.go:122 +0x9e
现在的日志输出信息:
[ INFO ] - Date: 2020-22-22 11:22:33.1234 AM - Position: main.go|main.main|22 - Message: custom message
能不能提供一个选项,可以去掉 Date:
、Position:
以及 Message:
这几个文本,因为很显而易见这栏就是时间,这栏就是代码位置,感觉没有必要,加上也增大了日志每行的长度
最终的效果就是
[ INFO ] - 2020-22-22 11:22:33.1234 AM - main.go|main.main|22 - custom message
另外这个 AM / PM 是否有必要存在呢,既然都已经是 24 小时制了?
file.go文件中常量定义的perfix单词拼错了(doge), 应该是prefix
我猜, 你应该是想定义一个文件后缀的字符串常量
 ̄□ ̄||
What's the use of this part, or what are the considerations
Sent from PPHub
file.go "errPrefix" no change
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.