Documentation ¶
Index ¶
- func GetLogger(loggerManager LoggerManager) (log.Logger, error)
- func GetLoggerForHelper(loggerManager LoggerManager) (log.Logger, error)
- func GetLoggerForMiddleware(loggerManager LoggerManager) (log.Logger, error)
- func GetWriter(loggerManager LoggerManager) (io.Writer, error)
- type LoggerManager
- type Loggers
- type ServiceInfo
- type TracerInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoggerForHelper ¶
func GetLoggerForHelper(loggerManager LoggerManager) (log.Logger, error)
func GetLoggerForMiddleware ¶
func GetLoggerForMiddleware(loggerManager LoggerManager) (log.Logger, error)
Types ¶
type LoggerManager ¶
type LoggerManager interface { EnableConsole() bool EnableFile() bool GetWriter() (io.Writer, error) GetLogger() (log.Logger, error) GetLoggerForMiddleware() (log.Logger, error) GetLoggerForHelper() (log.Logger, error) Close() error }
func NewLoggerManager ¶
type ServiceInfo ¶
type ServiceInfo struct { Project string `json:"project"` Name string `json:"name"` Env string `json:"env"` Version string `json:"version"` Hostname string `json:"hostname"` IP string `json:"ip"` }
func NewServiceInfo ¶
func NewServiceInfo(appConfig *configpb.App) *ServiceInfo
func (*ServiceInfo) Kvs ¶
func (s *ServiceInfo) Kvs() []interface{}
type TracerInfo ¶
func NewTracerInfo ¶
func NewTracerInfo() *TracerInfo
func (*TracerInfo) Kvs ¶
func (s *TracerInfo) Kvs() []interface{}
Click to show internal directories.
Click to hide internal directories.