log

package
v0.0.0-...-2b44270 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2017 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Overview

Package log implements logging with 2 rule: a. Information should go to log file (it will be created in /tmp folder). b. Error also should go to stderr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Console

func Console(str string)

Console logs on console or stdout

func Consolef

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

Consolef logs on console or stdout Arguments are handled in the manner of fmt.Sprintf

func Error

func Error(str string)

Error logs with [error] tag in prefix

func Errorf

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

Errorf logs with [error] tag in prefix Arguments are handled in the manner of fmt.Sprintf

func Info

func Info(str string)

Info logs with [info] tag in prefix

func Infof

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

Infof logs with [info] tag in prefix Arguments are handled in the manner of fmt.Sprintf

func ReadLogFile

func ReadLogFile() string

ReadLogFile returns contents of file as string

Types

This section is empty.

Jump to

Keyboard shortcuts

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