log

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2016 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package log provides centralized logging for the Documize application.

Index

Constants

This section is empty.

Variables

View Source
var TestIfErr bool

TestIfErr is used by the test code to signal that a test being run should error, it is reset if an error occurs.

Functions

func Debug

func Debug(message string)

Debug logs a message for debug purposes.

func Error

func Error(message string, err error)

Error logs an error, if non-nil, with a message to give some context.

func ErrorString

func ErrorString(message string)

ErrorString logs an error, where there is not an error value.

func IfErr

func IfErr(err error)

IfErr logs an error if one exists. It is a convenience wrapper for Error(), with no context message.

func Info

func Info(message string)

Info logs a message for information purposes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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