clog

package
v0.7.5 Latest Latest
Warning

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

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

Documentation

Overview

Package clog provides a logging interface for cayley packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

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

Errorf logs error level messages.

func Fatalf

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

Fatalf logs fatal messages and terminates the program.

func Infof

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

Infof logs information level messages.

func SetLogger

func SetLogger(l Logger)

SetLogger set the clog logging implementation.

func SetV

func SetV(level int)

SetV sets the clog verbosity level.

func V

func V(level int) bool

V returns whether the current clog verbosity is above the specified level.

func Warningf

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

Warningf logs warning level messages.

Types

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Warningf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	V(int) bool
	SetV(level int)
}

Logger is the clog logging interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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