simplelog

package module
v0.0.0-...-d374894 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 5 Imported by: 68

README

Simple Log Formatter

Simple log formatting for logrus

This log formatter removes the prefix from the output and just logs the text.

Sample Usage

package main

import (
    "github.com/ehazlett/simplelog"
    log "github.com/Sirupsen/logrus"
)

func init() {
    f := &simplelog.SimpleFormatter{}
    log.SetFormatter(f)
}

func main() {
    ...
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleFormatter

type SimpleFormatter struct{}

func (*SimpleFormatter) Format

func (s *SimpleFormatter) Format(entry *logrus.Entry) ([]byte, error)

type StandardFormatter

type StandardFormatter struct{}

func (*StandardFormatter) Format

func (s *StandardFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL