mlog

package
v0.0.0-...-f0721d9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: GPL-3.0, BSD-2-Clause Imports: 4 Imported by: 1

Documentation

Overview

mini logging package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutput

func GetOutput() io.Writer

func SetOutput

func SetOutput(logdir, service string, stdout bool)

func SetRawStream

func SetRawStream(w io.Writer)

Types

type Level

type Level int
const (
	Normal Level = iota
	Debug
	Trace
)

func (Level) Debugf

func (ll Level) Debugf(format string, a ...interface{})

func (Level) Debugln

func (ll Level) Debugln(a ...interface{})

func (Level) Fatalf

func (ll Level) Fatalf(format string, a ...interface{})

func (Level) Fatalln

func (ll Level) Fatalln(a ...interface{})

func (Level) Logf

func (ll Level) Logf(format string, a ...interface{})

func (Level) Logln

func (ll Level) Logln(a ...interface{})

func (Level) Tracef

func (ll Level) Tracef(format string, a ...interface{})

func (Level) Traceln

func (ll Level) Traceln(a ...interface{})

Jump to

Keyboard shortcuts

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