logging

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 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

Package logging provides primitives for configuring and creating logs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(a ...interface{})

Debug prints a message to the log if debug mode is enabled, it accepts arguments similar to log.Println.

func GetLogger

func GetLogger() *log.Logger

GetLogger returns the active logging object for creating new messages.

func SetLoggerFile

func SetLoggerFile(filename string) (err error)

SetLoggerFile changes the logging destination to a file. If a logger is already active, or the file cannot be opened, then the stderr logger will be used and an error will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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