예제 #1
0
        static FileLog()
        {
            var cleanupPeriod = TimeSpan.FromSeconds(5);

            DefaultMuxer = new MultiFileMuxer(new SingleFileMuxerFactory());
            DefaultMuxer.InitiateOrphanedRegistrationsCleanup(cleanupPeriod);

            Instances = new WeakSet <FileLog>();
            Instances.InitiatePurge(cleanupPeriod);
        }
예제 #2
0
 static FileLog()
 {
     DefaultMuxer = new MultiFileMuxer(new SingleFileMuxerFactory());
     DefaultMuxer.InitiateOrphanedRegistrationsCleanup(TimeSpan.FromSeconds(5));
 }