Groups | Blog | Home
all groups > dotnet distributed apps > october 2005 >

dotnet distributed apps : Logging App Block and Email


lukezhan NO[at]SPAM online.microsoft.com
10/3/2005 12:00:00 AM
Hello Bryan,

Between these two block, it is severity property for the log. You can find
following code in EmailMessage.cs:

string header = GenerateSubjectPrefix(configurationData.SubjectLineStarter);
string footer = GenerateSubjectSuffix(configurationData.SubjectLineEnder);

string sendToSmtpSubject = header + logEntry.Severity + footer;

Hope this help,

Luke
bryan NO[at]SPAM newsgroups.nospam
10/3/2005 11:29:17 AM
When you set up an EMail event sink in the Application Logging Block,
there are properties for Start of subject line and End of subject
line. How do you populate what goes between those two blocks of text?

Thanks,
lukezhan NO[at]SPAM online.microsoft.com
10/4/2005 12:00:00 AM
Hello Bryan,

I suspect the severity has not set for the logentry. You may set some break
point in the logging application block, for example, at this line:

string sendToSmtpSubject = header + logEntry.Severity + footer;

check if logEntry.Severity is null. It may not be set somewhere.

Luke
bryan NO[at]SPAM newsgroups.nospam
10/4/2005 8:55:07 AM
Luke -
THanks for the response. I'm puzzled, since the severity is not
showing up. All I see in the subject is the Starter and the Ender,
with nothing in between...

Thanks,
AddThis Social Bookmark Button