log

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 3 Imported by: 954

README

Log

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 go-micro/util/log
import "github.com/micro/go-micro/util/log"

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

Documentation

Overview

Package log is a global internal logger

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