[Top] [All Lists]

Controlling logging

Subject: Controlling logging
From: "Mark Bosley"
Date: Thu, 1 Dec 2005 11:24:02 -0600
Newsgroups: microsoft.public.sqlserver.notificationsvcs
I see that I can set the level of logging of a NS-SQL service thru the 
NSService.Exe.config file

   <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

<Prev in Thread] Current Thread [Next in Thread>