protected virtual void OnLogged(ErrorLoggedEventArgs args)
 {
     if (Logged != null)
     {
         Logged(this, args);
     }
 }
        /// <summary>
        /// Raises the <see cref="Logged"/> event.
        /// </summary>

        protected virtual void OnLogged(ErrorLoggedEventArgs args)
        {
            ErrorLoggedEventHandler handler = Logged;

            if (handler != null)
            {
                handler(this, args);
            }
        }