SystemLog() public static méthode

public static SystemLog ( string Message, Syslog MessageType ) : void
Message string
MessageType Syslog
Résultat void
Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
        /// <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);
        }
Exemple #4
0
        /// <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);
        }