Symeon,
I use the following chunk of code in my asp.net web.config and it works
fine.  I do not have
any problem with the switches tag.  It is a sub-element of configuration.
HTH,
Mike

<system.diagnostics>
      <sources>

    <source name="DefaultSource" switchName="DefaultSwitch">
        <listeners>
          <add name="myListener"/>
        </listeners>
      </source>
    </sources>
    <switches>

        <add name="UniTraceSwitch" value="4" />
    </switches>

    <sharedListeners>
      <add name="myListener"
type="System.Diagnostics.TextWriterTraceListener" 
               initializeData="c:\inetpub\wwwroot\myListener.log" />
    </sharedListeners>

    <trace autoflush="true" indentsize="4">
      <listeners>
        <add name="myListener" />
      </listeners>
    </trace>
  </system.diagnostics>

 
Michael Dallaire
Senior Applications Developer
IBM Certified Solutions Expert
Mortgage Builder Software, Inc.
Phone: (248) 304-0600 x 103
Fax: (248) 304-0601
[EMAIL PROTECTED]
www.mortgagebuilder.com
 
Providing Outstanding Support 
It's more than just a company philosophy; it's a whole corporate culture
whose foundation is service.
 
Confidentiality Notice 
This transmission may contain confidential information which is intended for
the exclusive use of the intended recipient. Any disclosure, copying,
distribution or use of the contents by anyone other than the intended
recipient is strictly prohibited. If received in error, please reply to the
sender immediately.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Symeon Breen
Sent: Thursday, April 17, 2008 11:15 AM
To: [email protected]
Subject: RE: [U2] uo.net logging

Hi thanks,  unfortunately the switches section is not valid in web.config, I
remember it was a simple change, If only I could remember exactly what it
was ...

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hona, David S
Sent: 16 April 2008 09:26
To: [email protected]
Subject: RE: [U2] uo.net logging

I don't know about asp.net, but in my vb.net app.config that is using
uo.net, I have (no doubt actually cloned from another app, probably IBM
supplied sample!):

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!--
        <UO.NET>
                <General>
                        <add    key="SocketTimeOut" value="300000" />
                </General>
                <PerformanceMonitor>
                        <add    key="BusyConnectionCounter" value="0"/>
                </PerformanceMonitor>
    </UO.NET>
    -->
    
    <system.diagnostics>
        <switches>
            <!-- Set value property of the TraceMethods switch to one of
the following:
                0 (false) or 1 (true) -->
            <add name="UniBooleanSwitch" value="1" />

            <!-- Set value property of the Arithmetic switch to one of
the following:
                1(error), 2(warning), 3(info), 4(verbose) -->
            <add name="UniTraceSwitch" value="3" />
        </switches>
        <trace autoflush="true" indentsize="4">
                        <listeners>
                                <!-- <add name="UniListener"
type="System.Diagnostics.TextWriterTraceListener, UODOTNET version=1.0.*
Culture=neutral" initializeData="c:\myListener.log" /> -->
                                <!-- <add name="myListener" 
        
type="System.Diagnostics.TextWriterTraceListener"
        
initializeData="c:\temp\myListener.log" /> -->
                                     <add name="myListener" 
        
type="System.Diagnostics.TextWriterTraceListener"
        
initializeData="c:\temp\myListener.log" /> 
                                     
                                     
                                
                        </listeners>
         </trace>

    </system.diagnostics>
</configuration> 


David



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Symeon Breen
Sent: Wednesday, April 16, 2008 5:30 PM
To: [email protected]
Subject: [U2] uo.net logging

Can someone remind me what entries to put in the web.config for an
asp.net app that uses uo.net to write the uo.net trace file b I know it
was something to do with <trace> and <listeners> but can not find my old
example anywhere b&.







Thanks

Symeon.
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to