logger

package
v0.0.0-...-3b39f08 Latest Latest
Warning

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

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

Documentation

Overview

Package logger handles application log messages with different levels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

Debug sends a debug log message.

func EnableDebug

func EnableDebug()

EnableDebug increases logging, more verbose (debug)

func Error

func Error(format string, v ...interface{})

Error sends an error log message.

func Fatal

func Fatal(format string, v ...interface{})

Fatal sends a fatal log message and stop the execution of the program.

func Info

func Info(format string, v ...interface{})

Info sends an info log message.

Types

type LogLevel

type LogLevel uint32

LogLevel type.

const (
	// FatalLevel should be used in fatal situations, the app will exit.
	FatalLevel LogLevel = iota

	// ErrorLevel should be used when someone should really look at the error.
	ErrorLevel

	// InfoLevel should be used during normal operations.
	InfoLevel

	// DebugLevel should be used only during development.
	DebugLevel
)

func (LogLevel) String

func (level LogLevel) String() string

Jump to

Keyboard shortcuts

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