Documentation
¶
Index ¶
- Constants
- type ULog
- func (l *ULog) ClearExternal()
- func (l *ULog) ClearFields()
- func (l *ULog) ClearOrder()
- func (l *ULog) Close()
- func (l *ULog) Debug(layout any, a ...any)
- func (l *ULog) DebugTime(now time.Time, layout any, a ...any)
- func (l *ULog) Error(layout any, a ...any)
- func (l *ULog) ErrorTime(now time.Time, layout any, a ...any)
- func (l *ULog) Info(layout any, a ...any)
- func (l *ULog) InfoTime(now time.Time, layout any, a ...any)
- func (l *ULog) Load(target string) *ULog
- func (l *ULog) Log(now time.Time, severity int, in any, a ...any)
- func (l *ULog) SetExternal(external func(string, []byte))
- func (l *ULog) SetField(key string, value any)
- func (l *ULog) SetFields(fields map[string]any)
- func (l *ULog) SetLevel(level string)
- func (l *ULog) SetOrder(names []string)
- func (l *ULog) Warn(layout any, a ...any)
- func (l *ULog) WarnTime(now time.Time, layout any, a ...any)
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 (*ULog) ClearExternal ¶
func (l *ULog) ClearExternal()
func (*ULog) ClearFields ¶
func (l *ULog) ClearFields()
func (*ULog) ClearOrder ¶
func (l *ULog) ClearOrder()
func (*ULog) SetExternal ¶
Click to show internal directories.
Click to hide internal directories.