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); } } }
public InformContent(InformSeverity severity, string message) : base(UserType.Operator, message) { mSeverity = severity; mMessageType = MessageType.Inform; }
public InformContent(UserType user, InformSeverity severity, string message) : base(user, message) { mSeverity = severity; mMessageType = MessageType.Inform; }
public InformContent(DateTime timeStamp, UserType userType, InformSeverity severity, string message) : base(timeStamp, userType, message) { mSeverity = severity; mMessageType = MessageType.Inform; }