log

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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