Documentation ¶
Index ¶
- type Logger
- type Serializer
- func (s *Serializer) AssertDebug(message string, containsFields ...log.Fields)
- func (s *Serializer) AssertDebugExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)
- func (s *Serializer) AssertError(message string, containsFields ...log.Fields)
- func (s *Serializer) AssertErrorExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)
- func (s *Serializer) AssertInfo(message string, containsFields ...log.Fields)
- func (s *Serializer) AssertInfoExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)
- func (s *Serializer) AssertLog(level log.Level, message string, containsFields ...log.Fields)
- func (s *Serializer) AssertLogExpression(level log.Level, messageExpression *regexp.Regexp, ...)
- func (s *Serializer) AssertWarn(message string, containsFields ...log.Fields)
- func (s *Serializer) AssertWarnExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)
- func (s *Serializer) Serialize(fields log.Fields) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { *Serializer log.Logger }
type Serializer ¶
func NewSerializer ¶
func NewSerializer() *Serializer
func (*Serializer) AssertDebug ¶
func (s *Serializer) AssertDebug(message string, containsFields ...log.Fields)
func (*Serializer) AssertDebugExpression ¶
func (s *Serializer) AssertDebugExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)
func (*Serializer) AssertError ¶
func (s *Serializer) AssertError(message string, containsFields ...log.Fields)
func (*Serializer) AssertErrorExpression ¶
func (s *Serializer) AssertErrorExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)
func (*Serializer) AssertInfo ¶
func (s *Serializer) AssertInfo(message string, containsFields ...log.Fields)
func (*Serializer) AssertInfoExpression ¶
func (s *Serializer) AssertInfoExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)
func (*Serializer) AssertLogExpression ¶
func (*Serializer) AssertWarn ¶
func (s *Serializer) AssertWarn(message string, containsFields ...log.Fields)
func (*Serializer) AssertWarnExpression ¶
func (s *Serializer) AssertWarnExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)
Click to show internal directories.
Click to hide internal directories.