func (logger *Logger) Error(args ...interface{}) {
	logger.output(log.Error, args...)
}
Error logs with an error level.
package golog
import (
	"bytes"
	"fmt"
	"io"
	"sync"
	"time"
	"github.com/alexcesaro/log"
)
type Logger struct {
	out             io.Writer
	threshold       log.Level
	writeMutex      sync.Mutex
	Formatter       func(*bytes.Buffer, log.Level, ...interface{})
	Writer          func(io.Writer, []byte, log.Level)
	bufferList      *buffer
	bufferListMutex sync.Mutex
}
func New(out io.Writer, threshold log.Level) *Logger {
	return &Logger{
		out:       out,
		threshold: threshold,
		Formatter: defaultFormater,
		Writer:    defaultWriter,
	}
}
func (logger *Logger) Emergency(args ...interface{}) {
	logger.output(log.Emergency, args...)
}
func (logger *Logger) Emergencyf(format string, args ...interface{}) {
	logger.output(log.Emergency, fmt.Sprintf(format, args...))
}
func (logger *Logger) Alert(args ...interface{}) {
	logger.output(log.Alert, args...)
}
func (logger *Logger) Alertf(format string, args ...interface{}) {
	logger.output(log.Alert, fmt.Sprintf(format, args...))
}
func (logger *Logger) Critical(args ...interface{}) {
	logger.output(log.Critical, args...)
}
func (logger *Logger) Criticalf(format string, args ...interface{}) {
	logger.output(log.Critical, fmt.Sprintf(format, args...))
}