示例#1
0
        public void Error(Exception e, string logMessage = "", [CallerMemberName] string memberName = "")
        {
            Trace($"Exception encountered in:  {memberName}");
            var text = e.AsLoggableString();

            logMessage = ((!string.IsNullOrEmpty(logMessage))
                ? ($"{logMessage}{Environment.NewLine}{text}")
                : text);
            Error(logMessage);
        }