none
Log files are not rolling over by using RollingFlatFileTraceListener RRS feed

  • Question

  • I am doing proof concept of using RollingFlatFileTraceListener. However, looks like none of the parameters I set were taken, except the file name.  I used NuGet Package Manager to import Microsoft Enterprise Logging Block. Please help!      

    var flatFileTraceListener = new RollingFlatFileTraceListener(@"C:\tmp\MigrationScheduler.log",
                    "/////////////////////////////////////////", 
                    "----------------------------------------", 
                    null, 
                    1,
                    "yyyy-MM-dd-hh-mm-ss", 
                    RollFileExistsBehavior.Increment, 
                    RollInterval.None, 
                    1);

    • Moved by 宝宝徐 Tuesday, January 12, 2016 3:14 AM
    Monday, January 11, 2016 12:26 AM

Answers

All replies