sharedListeners config in app.config file doesn't recognize customlocation attribute

R

RJ

I want to set the location of the log file written by
My.Application.Log.WriteEntry
MSDN doc has configuration example for changes to app.config file under
topic :
How to: Write Event Information to a Text File

I attempt to follow the doc and add to the sharedListeners section , but the
location attribute and customlocation attributes ( below) are not
recognized, and flagged as error by intellisense. Is this just another of
the many non-working MS examples? How do I change the location of the log
file?

<sharedListeners>

<add name="FileLogListener"
type="Microsoft.VisualBasic.Logging.FileLogTraceListener,
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" initializeData="FileLogListenerWriter"
location="Custom" customlocation="c:\temp\" />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top