Esempio n. 1
0
        /// <summary>   Sends an exception.
        ///             Отправка информации об ошибке в консоль </summary>
        ///
        /// <remarks>   AM Kozhevnikov, 22.01.2018. </remarks>
        ///
        /// <param name="ex">   The ex. </param>

        public static void SendException(Exception ex)
        {
            SendException(LoggerHelper.ExToString(ex));
        }
Esempio n. 2
0
        /// <summary>   Sends the exceptions. Отправка ошибки через логгер, с произвольной категорией.</summary>
        ///
        /// <remarks>   AM Kozhevnikov, 07.02.2018. </remarks>
        ///
        /// <param name="ex">       The ex. </param>
        /// <param name="category"> The category. </param>

        internal static void _SendExceptions(Exception ex, string category)
        {
            Send(LoggerMessageType.Exception, LoggerHelper.ExToString(ex), category);
        }
Esempio n. 3
0
        /// <summary>   Sends an exception.
        ///             Отправка информации об ошибке в консоль </summary>
        ///
        /// <remarks>   AM Kozhevnikov, 22.01.2018. </remarks>
        ///
        /// <param name="ex">   The ex. </param>

        public static void SendException(MethodBase owner, string text, Exception ex)
        {
            SendException($"{owner.DeclaringType}.{owner.Name} - {text}: {Environment.NewLine + LoggerHelper.ExToString(ex)}");
        }