qlog

package
Version: v0.0.0-...-3b4bda9 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Info msgSeverity = iota
	Warning
	Error
)

Variables

This section is empty.

Functions

func Log

func Log(s msgSeverity, what ...interface{}) error

func Logf

func Logf(s msgSeverity, format string, what ...interface{}) error

Types

type FileLog

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

func (*FileLog) Write

func (this *FileLog) Write(msg logMessage) (err error)

type LogWriter

type LogWriter interface {
	Write(logMessage) error
}

func NewFileLog

func NewFileLog(filename string) LogWriter

type NullLog

type NullLog struct{}

func (*NullLog) Write

func (this *NullLog) Write(msg logMessage) error

type QLogger

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

func New

func New(writers ...LogWriter) *QLogger

func (*QLogger) AddWriter

func (this *QLogger) AddWriter(writer LogWriter)

func (*QLogger) Log

func (this *QLogger) Log(s msgSeverity, what ...interface{}) (err error)

func (*QLogger) Logf

func (this *QLogger) Logf(s msgSeverity, format string, what ...interface{}) (err error)

type QMLRedirect

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

func (QMLRedirect) QmlOutput

func (this QMLRedirect) QmlOutput(msg qml.LogMessage) error

type StdLog

type StdLog struct{}

func (*StdLog) Write

func (this *StdLog) Write(msg logMessage) (err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL