logger

package module
v0.0.0-...-5462dbf Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 5 Imported by: 0

README

A Logging Library for Go

Usage

First get the needed packages.

go get -u github.com/exerdra/logger

Documentation

Index

Constants

View Source
const DEBUG = "DEBUG"
View Source
const ERROR = "ERROR"
View Source
const INFO = "INFO"
View Source
const WARN = "WARN"

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Out *log.Logger
	// contains filtered or unexported fields
}

func GetLogger

func GetLogger(logFile string, pac string) *Logger

func GetLoggerWithConfig

func GetLoggerWithConfig(pac string, c *lumberjack.Logger) *Logger

func (Logger) Close

func (l Logger) Close()

func (Logger) Debug

func (l Logger) Debug(msg string)

func (Logger) Debugf

func (l Logger) Debugf(msg string, v ...interface{})

func (Logger) Error

func (l Logger) Error(msg string)

func (Logger) Errorf

func (l Logger) Errorf(msg string, v ...interface{})

func (Logger) Info

func (l Logger) Info(msg string)

func (Logger) Infof

func (l Logger) Infof(msg string, v ...interface{})

func (Logger) Warn

func (l Logger) Warn(msg string)

func (Logger) Warnf

func (l Logger) Warnf(msg string, v ...interface{})

Jump to

Keyboard shortcuts

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