My.Application.Log question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sid Price

    My.Application.Log question

    I have created and included a app.config file in my solution; I need to have
    an event log for my client's applications and services. The application
    installer creates a logfile using the clients name "VMX" and also a source
    specifically for an application "VM_SyslogViewe r". In the app.config I have
    the following:
    <?xml version="1.0" encoding="utf-8" ?>

    <configuratio n>

    <system.diagnos tics>

    <sources>

    <!-- This section defines the logging configuration for
    My.Application. Log -->

    <source name="DefaultSo urce" switchName="Def aultSwitch">

    <listeners>

    <add name="EventLog" />

    </listeners>

    </source>

    </sources>

    <switches>

    <add name="DefaultSw itch" value="Informat ion" />

    </switches>

    <sharedListener s>

    <add name="FileLog"

    type="Microsoft .VisualBasic.Lo gging.FileLogTr aceListener,
    Microsoft.Visua lBasic, Version=8.0.0.0 , Culture=neutral ,
    PublicKeyToken= b03f5f7f11d50a3 a, processorArchit ecture=MSIL"

    initializeData= "FileLogWri ter"/>

    <add name="EventLog" type="System.Di agnostics.Event LogTraceListene r"
    initializeData= "VM_SyslogViewe r"/>

    </sharedListeners >

    </system.diagnost ics>

    </configuration>

    My event logs appear in the "Applicatio n" event log, how can I get them into
    the "VMX" log?

    Thanks,

    Sid.




Working...