// Write writes a message to the log.
Write writes a message to the log.
// Write writes a message to the log .
func (l *ZapLogger) Write(level Level, args ...interface{}) error {
	switch level {
	case DebugLevel:
		l.sugar.Debug(args...)
	case InfoLevel:
		l.sugar.Info(args...)
	case WarnLevel:
		l.sugar.Warn(args...)
	case ErrorLevel:
		l.sugar.Error(args...)
	default:
		panic("logger: unknown level")
	}
	return nil
}
func ( l * ZapLogger ) Write ( level Level , args ... interface { } ) error { switch level { case DebugLevel : l . sugar . Debug ( args ... ) case InfoLevel : l . sugar . Info ( args ... ) case WarnLevel : l . sugar . Warn ( args ... ) case ErrorLevel : l . sugar . Error ( args ... ) default : panic ( " " ) } return nil }
Write writes a message to the log.
Write writes a message to the log .