コード例 #1
0
 public void Info(InformSeverity severity, string message, Exception ex = null)
 {
     if (!mEnableLog)
     {
         return;
     }
     lock (mIncomingMessage)
     {
         mIncomingMessage.Enqueue(new InformContent(severity, message));
         mWaitingSemaphore.Release();
         if (ex != null)
         {
             EnqueueExceptionStack(ex);
         }
     }
 }
コード例 #2
0
 public InformContent(InformSeverity severity, string message)
     : base(UserType.Operator, message)
 {
     mSeverity    = severity;
     mMessageType = MessageType.Inform;
 }
コード例 #3
0
 public InformContent(UserType user, InformSeverity severity, string message)
     : base(user, message)
 {
     mSeverity    = severity;
     mMessageType = MessageType.Inform;
 }
コード例 #4
0
 public InformContent(DateTime timeStamp, UserType userType, InformSeverity severity, string message)
     : base(timeStamp, userType, message)
 {
     mSeverity    = severity;
     mMessageType = MessageType.Inform;
 }