• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Reply to: TraceSwitch

Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "TraceSwitch"

Collapse

  • DimPrawn
    replied
    Originally posted by suityou01 View Post

    I'm still a knob though.

    WHS.

    Leave a comment:


  • suityou01
    replied
    Originally posted by expat View Post
    Oh, so Microsoft operating systems are still associating files to applications based on the characters following the last period of the file name? How quaint.
    Automagically. Wonderful isn't it?

    I'm still a knob though.

    Leave a comment:


  • expat
    replied
    Originally posted by suityou01 View Post
    Predicatable DP. I can get some MCP training on Notepad, you on the other hand will always be ugly.

    HTH
    Oh, so Microsoft operating systems are still associating files to applications based on the characters following the last period of the file name? How quaint.

    Leave a comment:


  • suityou01
    replied
    Originally posted by DimPrawn View Post
    Christ alive! This and databinding arrays.

    Predicatable DP. I can get some MCP training on Notepad, you on the other hand will always be ugly.

    HTH

    Leave a comment:


  • DimPrawn
    replied
    Originally posted by suityou01 View Post
    I am an idiot. (We already knew this).

    I flicked the folder listing into "Detailed" in explorer and saw

    myApp.exe.config.txt

    And wept.

    Christ alive! This and databinding arrays.

    Leave a comment:


  • suityou01
    replied
    I am an idiot. (We already knew this).

    I flicked the folder listing into "Detailed" in explorer and saw

    myApp.exe.config.txt

    And wept.

    Leave a comment:


  • voodooflux
    replied
    Just tried it (new WPF app with your config) and it worked fine.

    EDIT: Can your code read anything (appSettings perhaps) from the config file?
    Last edited by voodooflux; 18 August 2009, 12:35.

    Leave a comment:


  • DimPrawn
    replied
    Looks okay to me. Are you sure you are compliling with debug or tracing on?

    Leave a comment:


  • suityou01
    started a topic TraceSwitch

    TraceSwitch

    I have a WPF C# app. I have a config file in the same folder as the exe

    myapp.exe.config

    I have a traceswitch defined thus

    <configuration>
    <system.diagnostics>
    <trace autoflush="false" indentsize="4">
    <listeners>
    <add name="traceListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="TextWriterOutput.log" />
    <remove name="Default" />
    </listeners>
    </trace>
    <switches>
    <add name="traceSwitch" value="4" />
    </switches>
    </system.diagnostics>
    </configuration>

    However, the little love won't pick up it's setting form the config file.

    Any ideas what I am doing wrong? Driving me mental.

    private static TraceSwitch traceSwitch = new TraceSwitch("traceSwitch", "My Trace Switch");
Working...
X