Ejemplo n.º 1
0
 public void Test()
 {
     LoggingHelper.Initialize();
     using (this.CreateScope("Bug387"))
     {
         //this.LogInfo(new { FileInfo = new FileInfo(@"C:\src\logper\Tar\Tar\SharedLibs\NVelocity\NVelocity.dll") });
         //this.LogInfo(new { Message = "Test Message" });
         this.LogInfo(new { Exception = new Exception("TEST EXCEPTION-1") });
         this.LogInfo(new Exception("TEST EXCEPTION-2"));
         this.LogInfo(new TarServiceOnErrorEventArgs(new PageableRequest(), new PageableResponse(),
                                                     new Exception("TEST EXCEPTION-3")));
         this.LogInfo(
             new
         {
             NVelocity_222KB        = File.ReadAllBytes(GetFilePath(@"SharedLibs\NVelocity\NVelocity.dll")),
             NHibernateDll_3_39MB   = File.ReadAllBytes(GetFilePath(@"SharedLibs\NHibernate\NHibernate.dll")),
             NHibernateXml_2_24MB   = File.ReadAllBytes(GetFilePath(@"SharedLibs\NHibernate\NHibernate.xml")),
             CastleWindsorDll_346KB =
                 File.ReadAllBytes(GetFilePath(@"SharedLibs\Castle.Windsor\Castle.Windsor.dll")),
         });
     }
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     LoggingHelper.Initialize();
 }