ulog

package
v0.0.0-...-4e20fc7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TIME_NONE int = iota
	TIME_DATETIME
	TIME_MSDATETIME
	TIME_TIMESTAMP
	TIME_MSTIMESTAMP
)
View Source
const (
	LOG_EMERG int = iota
	LOG_ALERT
	LOG_CRIT
	LOG_ERR
	LOG_WARNING
	LOG_NOTICE
	LOG_INFO
	LOG_DEBUG
)
View Source
const (
	LOG_KERN int = iota << 3
	LOG_USER
	LOG_MAIL
	LOG_DAEMON
	LOG_AUTH
	LOG_SYSLOG
	LOG_LPR
	LOG_NEWS
	LOG_UUCP
	LOG_CRON
	LOG_AUTHPRIV
	LOG_FTP

	LOG_LOCAL0
	LOG_LOCAL1
	LOG_LOCAL2
	LOG_LOCAL3
	LOG_LOCAL4
	LOG_LOCAL5
	LOG_LOCAL6
	LOG_LOCAL7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ULog

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

func New

func New(target string, arena ...*bslab.Arena) *ULog

func (*ULog) ClearExternal

func (l *ULog) ClearExternal()

func (*ULog) ClearFields

func (l *ULog) ClearFields()

func (*ULog) ClearOrder

func (l *ULog) ClearOrder()

func (*ULog) Close

func (l *ULog) Close()

func (*ULog) Debug

func (l *ULog) Debug(layout any, a ...any)

func (*ULog) DebugTime

func (l *ULog) DebugTime(now time.Time, layout any, a ...any)

func (*ULog) Error

func (l *ULog) Error(layout any, a ...any)

func (*ULog) ErrorTime

func (l *ULog) ErrorTime(now time.Time, layout any, a ...any)

func (*ULog) Info

func (l *ULog) Info(layout any, a ...any)

func (*ULog) InfoTime

func (l *ULog) InfoTime(now time.Time, layout any, a ...any)

func (*ULog) Load

func (l *ULog) Load(target string) *ULog

func (*ULog) Log

func (l *ULog) Log(now time.Time, severity int, in any, a ...any)

func (*ULog) SetExternal

func (l *ULog) SetExternal(external func(string, []byte))

func (*ULog) SetField

func (l *ULog) SetField(key string, value any)

func (*ULog) SetFields

func (l *ULog) SetFields(fields map[string]any)

func (*ULog) SetLevel

func (l *ULog) SetLevel(level string)

func (*ULog) SetOrder

func (l *ULog) SetOrder(names []string)

func (*ULog) Warn

func (l *ULog) Warn(layout any, a ...any)

func (*ULog) WarnTime

func (l *ULog) WarnTime(now time.Time, layout any, a ...any)

Jump to

Keyboard shortcuts

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