Esempio n. 1
0
 /// <summary>
 /// Initialize user log
 /// </summary>
 public static void userLogInit()
 {
     try
     {
         //Create a new instance of CircularTraceListener class for Userlog.
         UserSource.Switch.Level = SourceLevels.All;
         UserTraceLog            = new CircularTraceListener(new CircularStream(_userlogfileName, ConfigLoaded.UserLogFileSize));
         UserSource.Listeners.Add(UserTraceLog);
     }
     catch (Exception e)
     {
         chassisManagerEventLog.WriteEntry("CM User Logging cannot be done. Exception: " + e.ToString());
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initialize the trace log.
 /// </summary>
 public static void traceLogInit()
 {
     try
     {
         //Create a new instance of CircularTraceListener class for debug log.
         DebugSource.Switch = DebugSourceSwitch;
         DebugTraceLog      = new CircularTraceListener(new CircularStream(_tracefileName, ConfigLoaded.TraceLogFileSize));
         DebugSource.Listeners.Add(DebugTraceLog);
     }
     catch (Exception e)
     {
         chassisManagerEventLog.WriteEntry("CM Trace Logging cannot be done. Exception: " + e.ToString());
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Initialize user log
 /// </summary>
 public static void userLogInit()
 {
     try
     {               
         //Create a new instance of CircularTraceListener class for Userlog.
         UserSource.Switch.Level = SourceLevels.All;
         UserTraceLog = new CircularTraceListener(new CircularStream(_userlogfileName, ConfigLoaded.UserLogFileSize));
         UserSource.Listeners.Add(UserTraceLog);
     }
     catch (Exception e)
     {
         chassisManagerEventLog.WriteEntry("CM User Logging cannot be done. Exception: " + e.ToString());
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Initialize the trace log.
 /// </summary>
 public static void traceLogInit()
 {
     try
     {
         //Create a new instance of CircularTraceListener class for debug log.
         DebugSource.Switch = DebugSourceSwitch;
         DebugTraceLog = new CircularTraceListener(new CircularStream(_tracefileName, ConfigLoaded.TraceLogFileSize));
         DebugSource.Listeners.Add(DebugTraceLog);
         
     }
     catch (Exception e)
     {
         chassisManagerEventLog.WriteEntry("CM Trace Logging cannot be done. Exception: " + e.ToString());
        
     }
 }