Config setup question - Email with context

1 message Options
Embed this post
Permalink
caveman_dick

Config setup question - Email with context

Reply Threaded More More options
Print post
Permalink
Hi

I'm having an issue with setting up the config file to do what I want. Basically i'm trying to the following:

if (log.Level is error)
{
   GenerateEmailWithContext(logLevel.Debug, 50)
}

function GenerateEmailWithContext(var minLogLevel, int maxNoOfMessages)
{
}

Basically I want to show the context of how the application got to the error so that it will help to reproduce/debug it.

Thanks for you help! ;)