in AppInstallerFileBuilder/AppInstallerFileBuilderLib/Logger/LogMessage.cs [192:208]
private string GetExceptionStackLog()
{
if (this.logMessageArgs == null || this.logMessageArgs.Count != 1 || !(this.logMessageArgs[0] is ExpMessageArg))
{
return string.Empty;
}
Exception logExp = (this.logMessageArgs[0] as ExpMessageArg).MessageArgument as Exception;
// Since exception can come from any StackFrame - we should read the function
// info from the exp stack frame info directly.
// Check first to see if there is target info in the exp object.
string expFileName = (logExp.TargetSite == null) ? "No Info on target site file name" : logExp.TargetSite.ReflectedType.FullName;
string expFuncName = (logExp.TargetSite == null) ? "No Info on target site func name" : logExp.TargetSite.Name;
return expFileName + ". " + expFuncName + "() -> " + logExp.Message +
"\r\nStack Trace:\r\n" + logExp.StackTrace;
}