logger

package
v0.0.0-...-386a0b5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logger contains a wrapper around logrus to support a centralized logging config.

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Logger

Logger is the main logger that is abstracted in this package. It is exported here for use with gorm.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(format string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func Info

func Info(args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Setup

func Setup() error

Setup configures the logger based on options in the config.json.

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(format string, args ...interface{})

func WithFields

func WithFields(fields logrus.Fields) *logrus.Entry

func Writer

func Writer() *io.PipeWriter

Types

This section is empty.

Jump to

Keyboard shortcuts

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