mulog

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package `mulog` provides minimal Zap-Sugar-like loggers with convenient structured logging `Levelw(msg, kv...)` functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct{}

`Logger` prints messages with timestamps, using package `log`.

func (Logger) Errorw

func (Logger) Errorw(msg string, kv ...interface{})

func (Logger) Fatalw

func (Logger) Fatalw(msg string, kv ...interface{})

func (Logger) Infow

func (Logger) Infow(msg string, kv ...interface{})

func (Logger) Panicw

func (Logger) Panicw(msg string, kv ...interface{})

func (Logger) Warnw

func (Logger) Warnw(msg string, kv ...interface{})

type Printer

type Printer struct{}

`Printer` prints undecorated messages, using package `fmt`.

func (Printer) Errorw

func (Printer) Errorw(msg string, kv ...interface{})

func (Printer) Fatalw

func (Printer) Fatalw(msg string, kv ...interface{})

func (Printer) Infow

func (Printer) Infow(msg string, kv ...interface{})

func (Printer) Panicw

func (Printer) Panicw(msg string, kv ...interface{})

func (Printer) Warnw

func (Printer) Warnw(msg string, kv ...interface{})

Jump to

Keyboard shortcuts

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