github.com/phuslu/log@v1.0.100/logger_silent_others.go (about) 1 //go:build !amd64 2 // +build !amd64 3 4 package log 5 6 import ( 7 "sync/atomic" 8 ) 9 10 func (l *Logger) silent(level Level) bool { 11 return uint32(level) < atomic.LoadUint32((*uint32)(&l.Level)) 12 }