code: func (m *MemoryBackend) Log(event LogEvent, client *Client, pkt packet.Generic, msg *packet.Message, err error) {
  	// call logger if available
  	if m.Logger != nil {
  		m.Logger(event, client, pkt, msg, err)
  	}
  }
docs: // Log will call the associated logger.