log

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright 2017-2018 OneLedger

Setup a global logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...interface{})

func Error

func Error(msg string, args ...interface{})

func Fatal

func Fatal(msg string, args ...interface{})

func GetLogger

func GetLogger() log.Logger

GetLogger lets the gobal logger get passed to libraries

func Info

func Info(msg string, args ...interface{})

func NewLogger

func NewLogger() log.Logger

NewLogger sets in the defaults

func Raw

func Raw(text string)

func SetLogger

func SetLogger(logger log.Logger)

TODO: should be push/pop?

func Warn

func Warn(msg string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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