logging

package
v0.0.0-...-5f18953 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is structure for internal use

func CreateLog

func CreateLog(fileName string, maxFileSize int64, level byte) (logger *Logger, err error)

CreateLog is created new logging system

func (*Logger) Close

func (logger *Logger) Close()

Close closes all opened handles and stop logging

func (*Logger) Error

func (logger *Logger) Error(msg string, a ...interface{})

Error outputs the message into log with Warning level

func (*Logger) Info

func (logger *Logger) Info(msg string, a ...interface{})

Info outputs the message into log with Warning level

func (*Logger) Trace

func (logger *Logger) Trace(msg string, a ...interface{})

Trace outputs the message into log with Trace level

func (*Logger) Warning

func (logger *Logger) Warning(msg string, a ...interface{})

Warning outputs the message into log with Warning level

Jump to

Keyboard shortcuts

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