Exemple #1
0
func (lc *lconfig) doing_default_level() (syslog.Priority, bool) {
	c := atomic.LoadUint32(&lc.config)
	l := syslog.Priority(c & maskLogLvl)
	d := syslog.Priority((c & maskDefLvl) >> levelshift)
	respect := (c & maskDefObl) == 0
	return d, ((d <= l) || !respect)
}
Exemple #2
0
func (lc *lconfig) default_level() (l syslog.Priority) {
	c := atomic.LoadUint32(&lc.config)
	l = syslog.Priority(c & maskDefLvl >> levelshift)
	return
}
Exemple #3
0
func (lc *lconfig) level() (l syslog.Priority) {
	c := atomic.LoadUint32(&lc.config)
	l = syslog.Priority(c & maskLogLvl)
	return
}