log

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

README

Log License GoDoc

This is the global logger for all micro based libraries which makes use of github.com/go-log/log.

It defaults the logger to the stdlib log implementation.

Set Logger

Set the logger for micro libraries

// import micro/go-log
import "github.com/micro/go-log"

// SetLogger expects github.com/go-log/log.Logger interface
log.SetLogger(mylogger)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(v ...interface{})

Fatal logs with Log and then exits with os.Exit(1)

func Fatalf

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

Fatalf logs with Logf and then exits with os.Exit(1)

func Log

func Log(v ...interface{})

Log makes use of github.com/go-log/log.Log

func Logf

func Logf(format string, v ...interface{})

Logf makes use of github.com/go-log/log.Logf

func SetLogger

func SetLogger(l log.Logger)

SetLogger sets the local logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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