Documentation
¶
Index ¶
- func NewMicroLogrus(rootLogger *logrus.Logger) logger.Logger
- func NewWriter(scope *LogrusScope) io.Writer
- type LogrusScope
- func (ls *LogrusScope) Call(h interface{}, args ...interface{}) (result *LogrusScopeResult)
- func (ls *LogrusScope) Handle(h LogrusScopeCallHandler) *LogrusScopeResult
- func (ls LogrusScope) WithField(key string, value interface{}) *LogrusScope
- func (ls LogrusScope) WithFields(fields logrus.Fields) *LogrusScope
- type LogrusScopeCallHandler
- type LogrusScopeErrorHandler
- type LogrusScopeResult
- func (r *LogrusScopeResult) Catch(h LogrusScopeErrorHandler) *LogrusScopeResult
- func (r *LogrusScopeResult) GetError() error
- func (r *LogrusScopeResult) GetResult() interface{}
- func (r *LogrusScopeResult) HasError() bool
- func (r *LogrusScopeResult) OnError(h LogrusScopeErrorHandler) error
- func (r *LogrusScopeResult) Then(h interface{}, args ...interface{}) (result *LogrusScopeResult)
- func (r *LogrusScopeResult) ThenHandle(h LogrusScopeThenHandler) *LogrusScopeResult
- func (r LogrusScopeResult) WithField(key string, value interface{}) *LogrusScopeResult
- func (r LogrusScopeResult) WithFields(fields logrus.Fields) *LogrusScopeResult
- type LogrusScopeThenHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWriter ¶
func NewWriter(scope *LogrusScope) io.Writer
Types ¶
type LogrusScope ¶
func (*LogrusScope) Call ¶
func (ls *LogrusScope) Call(h interface{}, args ...interface{}) (result *LogrusScopeResult)
func (*LogrusScope) Handle ¶
func (ls *LogrusScope) Handle(h LogrusScopeCallHandler) *LogrusScopeResult
func (LogrusScope) WithField ¶
func (ls LogrusScope) WithField(key string, value interface{}) *LogrusScope
func (LogrusScope) WithFields ¶
func (ls LogrusScope) WithFields(fields logrus.Fields) *LogrusScope
type LogrusScopeCallHandler ¶
type LogrusScopeCallHandler func(ls *LogrusScope) (result interface{}, err error)
type LogrusScopeErrorHandler ¶
type LogrusScopeErrorHandler func(err error, ls *LogrusScope) error
type LogrusScopeResult ¶
func (*LogrusScopeResult) Catch ¶
func (r *LogrusScopeResult) Catch(h LogrusScopeErrorHandler) *LogrusScopeResult
func (*LogrusScopeResult) GetError ¶
func (r *LogrusScopeResult) GetError() error
func (*LogrusScopeResult) GetResult ¶
func (r *LogrusScopeResult) GetResult() interface{}
func (*LogrusScopeResult) HasError ¶
func (r *LogrusScopeResult) HasError() bool
func (*LogrusScopeResult) OnError ¶
func (r *LogrusScopeResult) OnError(h LogrusScopeErrorHandler) error
func (*LogrusScopeResult) Then ¶
func (r *LogrusScopeResult) Then(h interface{}, args ...interface{}) (result *LogrusScopeResult)
func (*LogrusScopeResult) ThenHandle ¶
func (r *LogrusScopeResult) ThenHandle(h LogrusScopeThenHandler) *LogrusScopeResult
func (LogrusScopeResult) WithField ¶
func (r LogrusScopeResult) WithField(key string, value interface{}) *LogrusScopeResult
func (LogrusScopeResult) WithFields ¶
func (r LogrusScopeResult) WithFields(fields logrus.Fields) *LogrusScopeResult
type LogrusScopeThenHandler ¶
type LogrusScopeThenHandler func(last interface{}, ls *LogrusScope) (result interface{}, err error)
Click to show internal directories.
Click to hide internal directories.