Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogcatFormatter ¶
SetLogcatFormatter set the logcat formatter for given logger.
func SetTextFormatter ¶
SetTextFormatter set the text formatter for given logger.
Types ¶
type ContextHook ¶
type ContextHook struct {
// contains filtered or unexported fields
}
ContextHook is a custom hook for add the source information for the entry
func NewContextHook ¶
func NewContextHook() *ContextHook
NewContextHook instantiate a new context hook
func (ContextHook) Fire ¶
func (hook ContextHook) Fire(entry *logrus.Entry) error
Fire extend with the source information the entry.Data
func (ContextHook) Levels ¶
func (hook ContextHook) Levels() []logrus.Level
Levels set the supported levels for this hook
type LogcatFormatter ¶
type LogcatFormatter struct {
// contains filtered or unexported fields
}
LogcatFormatter formats logs into text what is fit for logcat
func NewLogcatFormatter ¶
func NewLogcatFormatter() *LogcatFormatter
NewLogcatFormatter create new LogcatFormatter instance
type TextFormatter ¶
type TextFormatter struct {
// contains filtered or unexported fields
}
TextFormatter formats logs into text with included source code's path
func NewTextFormatter ¶
func NewTextFormatter() *TextFormatter
NewTextFormatter create new MyTextFormatter instance
Click to show internal directories.
Click to hide internal directories.