lib

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 16 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLib

func NewLib() interfaces.Logger

Types

type Modules

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

func (*Modules) Debug

func (c *Modules) Debug(format interface{}, input ...interface{})

func (*Modules) Debugf added in v0.0.4

func (c *Modules) Debugf(format string, input ...interface{})

func (*Modules) DisableColor added in v0.0.4

func (c *Modules) DisableColor(val bool)

func (*Modules) Error

func (c *Modules) Error(format interface{}, input ...interface{}) interfaces.Logger

func (*Modules) Errorf added in v0.0.4

func (c *Modules) Errorf(format string, input ...interface{})

func (*Modules) GetLogLevel

func (c *Modules) GetLogLevel() (level interfaces.DebugLevel)

func (*Modules) GetOutputFormat

func (c *Modules) GetOutputFormat() interfaces.OutputFormat

func (*Modules) GetPrintToConsole

func (c *Modules) GetPrintToConsole() (pr bool)

func (*Modules) Info

func (c *Modules) Info(format interface{}, input ...interface{})

func (*Modules) Infof added in v0.0.4

func (c *Modules) Infof(format string, input ...interface{})

func (*Modules) Init

func (c *Modules) Init(namespace, version string)

func (*Modules) New

func (c *Modules) New() interfaces.Logger

func (*Modules) NewSystemLogger

func (c *Modules) NewSystemLogger() *log.Logger

func (*Modules) Notice

func (c *Modules) Notice(format interface{}, input ...interface{})

func (*Modules) ParsingLog

func (c *Modules) ParsingLog(msg interfaces.LoggerMessage) (raw string)

func (*Modules) Printf

func (c *Modules) Printf(f string, data ...interface{})

func (*Modules) Quit

func (c *Modules) Quit()

func (*Modules) ServiceName

func (c *Modules) ServiceName() string

func (*Modules) ServiceVersion

func (c *Modules) ServiceVersion() string

func (*Modules) SetLogFile

func (c *Modules) SetLogFile(config interfaces.LoggingFile)

func (*Modules) SetLogLevel

func (c *Modules) SetLogLevel(level interfaces.DebugLevel)

func (*Modules) SetOnLoggerHandler

func (c *Modules) SetOnLoggerHandler(f func(msg interfaces.LoggerMessage, raw string))

func (*Modules) SetOutputFormat

func (c *Modules) SetOutputFormat(op interfaces.OutputFormat)

func (*Modules) SetPrintToConsole

func (c *Modules) SetPrintToConsole(pr bool)

func (*Modules) Success

func (c *Modules) Success(format interface{}, input ...interface{})

func (*Modules) Trace

func (c *Modules) Trace(format interface{}, input ...interface{})

func (*Modules) Warnf added in v0.0.4

func (c *Modules) Warnf(format string, input ...interface{})

func (*Modules) Warning

func (c *Modules) Warning(format interface{}, input ...interface{})

func (*Modules) Write

func (c *Modules) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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