I have something similar in my app. All you need to do is create a section
in the NS config file.
.... <NS Stuff>
<add key="MQIVRDebugMode" value="0" />
Then in your code you read from a config file like normal.
"Mark Bosley" <[email protected]> wrote in message
>I see that I can set the level of logging of a NS-SQL service thru the
> <add name="LogAdministrative" value="2"/>
> <add name="LogService" value="4"/> ........
> But I am doing some domain specific logging on my own and I would like to
> set the logging level
> thru "Startup Parameters" or ..... what
> In my code what I would like is something like
> if (AppLogLevel == "VERBOSE")
> nsEventLog.WriteEntry( logMessage, entryType, (int)eventID);
> What would AppLogLevel be? Thanks