* logger first * log->logger * update comment * add context in Options * add Fields * remove logfi * add field encode * add common Field Types * update logger field
20 lines
282 B
Go
20 lines
282 B
Go
package logger
|
|
|
|
import "context"
|
|
|
|
// Option for load profiles maybe
|
|
// eg. yml
|
|
// micro:
|
|
// logger:
|
|
// name:
|
|
// dialect: zap/default/logrus
|
|
// zap:
|
|
// xxx:
|
|
// logrus:
|
|
// xxx:
|
|
type Option func(*Options)
|
|
|
|
type Options struct {
|
|
Context context.Context
|
|
}
|