/[projects]/dao/DaoMqPump2/DaoMqPump2/Transport.cs
ViewVC logotype

Diff of /dao/DaoMqPump2/DaoMqPump2/Transport.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2056 by torben, Tue Aug 27 06:33:28 2013 UTC revision 2057 by torben, Tue Aug 27 06:49:36 2013 UTC
# Line 7  using System.Diagnostics; Line 7  using System.Diagnostics;
7    
8  using IBM.WMQ;  using IBM.WMQ;
9  using MySql.Data.MySqlClient;  using MySql.Data.MySqlClient;
10    using System.Globalization;
11    
12  namespace DaoMqPump2  namespace DaoMqPump2
13  {  {
# Line 407  namespace DaoMqPump2 Line 408  namespace DaoMqPump2
408              DateTime now = DateTime.Now;              DateTime now = DateTime.Now;
409              string filename = controller.logDirectory + "\\";              string filename = controller.logDirectory + "\\";
410    
411                //Find uge nr
412                DateTimeFormatInfo dfi = DateTimeFormatInfo.CurrentInfo;
413                Calendar myCal = CultureInfo.InvariantCulture.Calendar;//System.Globalization
414                int week = myCal.GetWeekOfYear(now, dfi.CalendarWeekRule, dfi.FirstDayOfWeek);
415    
416              switch (type)              switch (type)
417              {              {
418                  case LogfileType.LogEvents:                  case LogfileType.LogEvents:
# Line 419  namespace DaoMqPump2 Line 425  namespace DaoMqPump2
425              }              }
426    
427    
428              filename += name + "_" + now.Year.ToString("D4") + now.Month.ToString("D2") + ".log";              filename += name + "_" + now.Year.ToString("D4") + "_W" + week.ToString("D2") + ".log";
429    
430              return filename;              return filename;
431          }          }

Legend:
Removed from v.2056  
changed lines
  Added in v.2057

  ViewVC Help
Powered by ViewVC 1.1.20