log

package
v0.0.0-...-23fbfb3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package log provides logging functionality used in go-lumber.

The log package provides replaceable logging for use from within go-lumber. Overwrite Logging variable with custom Logging implementation for integrating go-lumber logging with applications logging strategy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(args ...interface{})

Print calls Logger.Print to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func Printf

func Printf(format string, args ...interface{})

Printf calls Logger.Printf to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func Println

func Println(args ...interface{})

Println calls Logger.Println to print to the standard logger. Arguments are handled in the manner of fmt.Println.

Types

type Logging

type Logging interface {
	Printf(string, ...interface{})
	Println(...interface{})
	Print(...interface{})
}

Logging interface custom loggers must implement.

var Logger Logging = defaultLogger{}

Logger provides the global logger used by go-lumber.

Jump to

Keyboard shortcuts

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