Skip to content

Latest commit

Β 

History

History
27 lines (18 loc) Β· 608 Bytes

README.md

File metadata and controls

27 lines (18 loc) Β· 608 Bytes

Bottom formatter for logrus based on bottom-go

Usage

package main

import (
        log "github.com/sirupsen/logrus"

        "github.com/hairmare/logrus-bottom/bottomlog"
)

func main() {

        // πŸ₯Ί,,
        log.SetFormatter(bottomlog.NewBottomFormatter())

        log.WithFields(log.Fields{
                "animal": "walrus",
        }).Info("A walrus appears")
}

Acknowledgements

The logrus-bottom team would like to thank the bottom software foundation for their inspiration.