Plugin and tracing service

Answered Plugin and tracing service

All Replies

  • Saturday, June 30, 2012 9:21 PM
     
     Answered Has Code

    There is no configurable control of tracing.  If you do not wish to continue tracing in Production the code must be removed.

    If you want code to be compiled into your Debug (for Dev/Test etc) version, but not Release, you can use the DEBUG pragma to conditionally compile the tracing code:

    #if DEBUG
        tracingService.Trace("Debug version");
    #endif

    When you change your build to Release (which does not define the DEBUG pragma, your assembly will no longer contain the tracing.


    --pogo (pat) @ pogo69.wordpress.com