Documentation ¶
Index ¶
- func AddDebugDomain(domain string, ttl time.Duration) error
- func DebugExpiration(domain string) *time.Time
- func Init(opt Options) error
- func RemoveDebugDomain(domain string) error
- type Entry
- func (e *Entry) AddHook(hook logrus.Hook)
- func (e *Entry) Debug(msg string)
- func (e *Entry) Debugf(format string, args ...interface{})
- func (e *Entry) Error(msg string)
- func (e *Entry) Errorf(format string, args ...interface{})
- func (e *Entry) Info(msg string)
- func (e *Entry) Infof(format string, args ...interface{})
- func (e *Entry) IsDebug() bool
- func (e *Entry) Log(level logrus.Level, msg string)
- func (e *Entry) Warn(msg string)
- func (e *Entry) Warnf(format string, args ...interface{})
- func (e *Entry) WithField(key string, value interface{}) *Entry
- func (e *Entry) WithFields(fields logrus.Fields) *Entry
- func (e *Entry) WithNamespace(nspace string) *Entry
- func (e *Entry) Writer() *io.PipeWriter
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDebugDomain ¶
AddDebugDomain adds the specified domain to the debug list.
func DebugExpiration ¶
DebugExpiration returns the expiration date for the debug mode for the instance logger of the given domain (or nil if the debug mode is not activated).
func RemoveDebugDomain ¶
RemoveDebugDomain removes the specified domain from the debug list.
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is the struct on which we can call the Debug, Info, Warn, Error methods with the structured data accumulated.
func WithDomain ¶
WithDomain returns a logger with the specified domain field.
func WithNamespace ¶
WithNamespace returns a logger with the specified nspace field.
func (*Entry) WithFields ¶
WithFields adds a map of fields to the Entry.
func (*Entry) WithNamespace ¶
WithNamespace adds a namespace (nspace field).
func (*Entry) Writer ¶
func (e *Entry) Writer() *io.PipeWriter
Click to show internal directories.
Click to hide internal directories.