mbrit edited this page Sep 17, 2012 · 4 revisions

In Windows Store apps, this target can be helpful for keeping track of development without the overhead of EventTrackingForWindows.

  • Files are cleaned up if they are older than 30 days. Use RetainDays to change this value. Set to zero to disable cleanup (not recommended).

  • Files are named according to the settings in FileNamingParameters. By default the naming is Log - <date>.log.


One option is to configure this target as only available in DEBUG builds, for example:

    public App()
        this.Suspending += OnSuspending;

        // setup the logging...
    #if DEBUG
        LogManagerFactory.DefaultConfiguration.AddTarget(LogLevel.Trace, LogLevel.Fatal, new FileStreamingTarget());