multilog

package
v0.0.0-...-44c606d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger is a log package's logger with a slice of it's outputs

var (
	// Debug messages are a developer's ones. Actually, they are visible in syslog
	Debug *Logger
	// Info messages are supposed to be visible for user.
	Info *Logger
)

func New

func New(dest io.Writer, prefix string, flag int) *Logger

New makes a logger (a log package's one) with a slice of logging sources

func (*Logger) AddOutput

func (logger *Logger) AddOutput(destinations ...io.Writer)

AddOutput appends a io.Writer to logger's outputs

Jump to

Keyboard shortcuts

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