handlers.go
func (handler *MemoryHandler) Handle(record *Record) error {
	handler.lock.Lock()
	handler.Messages = append(handler.Messages, handler.Formatter.Format(record))
	handler.lock.Unlock()
	return nil
}
func (handler *MemoryHandler) Handle(record *Record) error {
	handler.lock.Lock()
	handler.Messages = append(handler.Messages, handler.Formatter.Format(record))
	handler.lock.Unlock()
	return nil
}
func ( handler * MemoryHandler ) Handle ( record * Record ) error { handler . lock . Lock ( ) handler . Messages = append ( handler . Messages , handler . Formatter . Format ( record ) ) handler . lock . Unlock ( ) return nil }
// Handle appends message to Messages array.
Handle appends message to Messages array .