// Log writes a message to the log using the given level.
Log writes a message to the log using the given level.
// Log writes a message to the log using the given level .
func (l *Logger) Log(level Level, args ...interface{}) {
	if level < l.level {
		return
	}
	err := l.driver.Write(level, args...)
	if err != nil {
		log.Println(fmt.Errorf("write log error: %w", err))
	}
}
func ( l * Logger ) Log ( level Level , args ... interface { } ) { if level < l . level { return } err := l . driver . Write ( level , args ... ) if err != nil { log . Println ( fmt . Errorf ( " " , err ) ) } }
Log writes a message to the log using the given level.
Log writes a message to the log using the given level .
// Skip if the level is below the logger level. // when write log to file failed, print to console