/// <summary> /// Writes the message immediately to console with no thread sync /// </summary> /// <returns> /// The now. /// </returns> /// <param name='Message'> /// If set to <c>true</c> message. /// </param> /// <param name='MessageType'> /// If set to <c>true</c> message type. /// </param> public static bool WriteNow(string Message, Type MessageType) { if (IsQuiet) { return(false); } Logging.Display(DateTime.Now, Message, MessageType); SystemHooks.SystemLog(Message, MessageType); return(true); }
/// <summary> /// Log the specified Message and MessageType. /// </summary> /// <param name='Message'> /// If set to <c>true</c> message. /// </param> /// <param name='MessageType'> /// If set to <c>true</c> message type. /// </param> public static bool Log(string Message, Type MessageType) { if (IsQuiet) { return(false); } Logging.Write(Message, MessageType); SystemHooks.SystemLog(Message, MessageType); return(true); }
/// <summary> /// Log the specified message /// </summary> /// <param name='Message'> /// Message that you want to log. /// </param> /// <param name='Warning'> /// If this is true the message will be classified as a warning. /// </param> public static bool Log(string Message, bool Warning = false) { if (IsQuiet) { return(false); } Type MessageType = Type.Normal; if (Warning) { MessageType = Type.Warning; } Logging.Write(Message, MessageType); SystemHooks.SystemLog(Message, MessageType); return(true); }
/// <summary> /// Writes the message immediately to console with no thread sync /// </summary> /// <returns> /// The now. /// </returns> /// <param name='Message'> /// Message that you want to log. /// </param> /// <param name='Warning'> /// If this is true the message will be classified as a warning. /// </param> public static bool WriteNow(string Message, bool Warning = false) { if (IsQuiet) { return(false); } Type _Type = Type.Normal; if (Warning) { _Type = Type.Warning; } Logging.Display(DateTime.Now, Message, _Type); SystemHooks.SystemLog(Message, _Type); return(true); }