コード例 #1
0
        private void LogCaller(LoggerEventArgs args)
        {
            string eMessage = String.Empty;

            if (args.Exception != null)
            {
                eMessage = args.Exception.Message;
            }

            AddLog(new Log(args.LogType, args.Message, (Exception)args.Exception));

            OnLog?.Invoke(this, args);
        }
コード例 #2
0
        private void LogCaller(LoggerEventArgs args)
        {
            string eMessage = String.Empty;

            if (args.Exception != null)
            {
                eMessage = args.Exception.Message;
            }

            AddLog(new Log(args.LogType, args.Message, eMessage));

            LoggerHandler caller = OnLog;

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