Пример #1
0
        public static void GlobalLog(CultureStringsBase message, MessageType messageType = MessageType.Default,
                                     IEnumerable <Object> formatList   = null, ConsoleColor?messageColor = null, Int32 priority = 0,
                                     MessageAdditions messageAdditions = MessageAdditions.None)
        {
            LogMessage logMessage = new LogMessage(message, messageType, formatList, messageColor, priority, messageAdditions);

            GlobalMessages.Add(logMessage);
            GlobalLogged?.Invoke(logMessage);
        }
Пример #2
0
 public static void GlobalLog(LogMessage logMessage)
 {
     GlobalMessages.Add(logMessage);
     GlobalLogged?.Invoke(logMessage);
 }