go_logger

package module
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

go-logger

Simple logger used mostly in Randlabs.IO apps

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(level uint, format string, a ...interface{})

Debug ...

func Error

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

Error ...

func Finalize

func Finalize()

Finalize ...

func Info

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

Info ...

func Initialize

func Initialize(options Options) error

Initialize ...

func SetDebugLevel

func SetDebugLevel(level uint)

SetDebugLevel ...

func Warn

func Warn(format string, a ...interface{})

Warn ...

Types

type Options

type Options struct {
	AppName      string                      `json:"appName"`
	FileLog      *filelogger.FileLogOptions  `json:"fileLog,omitempty"`
	SysLog       *sysloglogger.SysLogOptions `json:"sysLog,omitempty"`
	DebugLevel   uint                        `json:"debugLevel,omitempty"`
	UseLocalTime bool                        `json:"useLocalTime,omitempty"`
}

Options ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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