1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00

[WIP] logger first (#1161)

* logger first

* log->logger

* update comment

* add context in Options

* add Fields

* remove logfi

* add field encode

* add common Field Types

* update logger field
This commit is contained in:
Shu xian
2020-02-07 05:35:46 +08:00
committed by GitHub
parent dbeb7cfe9c
commit fdfb2bc4c1
4 changed files with 123 additions and 0 deletions

13
logger/level.go Normal file
View File

@ -0,0 +1,13 @@
package logger
type Level int8
const (
TraceLevel Level = iota - 1
DebugLevel
InfoLevel
WarnLevel
ErrorLevel
PanicLevel
FatalLevel
)