public bool HasBeenLogged(LogLevel logLevel, string msg)
 {
     return(LogEntries.Any(item => item.LogLevel == logLevel && item.State.ToString() == msg));
 }