public LogMessage[] GetMessages(int messagesAmount)
 {
     return(logger.GetMessages(messagesAmount));
 }