protected override void onItemStarted(ContentItem item, uint id)
 {
     if (Verbose)
     {
         Info($"Started building content item '{item.ItemPath}' at {MessageTime.ToLongTimeString()}.");
     }
 }
Beispiel #2
0
        public static MessageTime Insert(object msg)
        {
            if (StartTime == 0)
            {
                StartTime = Dates.UnixTimeSeconds();
            }
            long EndTime = Dates.UnixTimeSeconds();

            double minutes = Math.Round((EndTime - StartTime) / 60.0, 2);
            string text    = Dates.Timestamp(null) + "\t" + Constants.Network + "\t" + Constants.GUID + "\t";

            text += minutes + "\t";

            string given_msg = msg.GetType().Name == "String" ? msg.ToString() : JsonConvert.SerializeObject(msg, Formatting.Indented);

            text += given_msg;
            if (!NoConsoleOutput)
            {
                Console.WriteLine(text);
            }
            MessageTime mt = new MessageTime();

            mt.given_msg = given_msg;
            mt.minutes   = minutes;
            mt.text      = text;
            return(mt);
        }
 public override string ToString()
 {
     return(string.Format("MessageType[{0}], MessageID[{1}], MessageTime[{2}], CorrelationID[{3}], CorrelationTime[{4}]",
                          MessageType,
                          MessageID, MessageTime.ToString(@"yyyy-MM-dd HH:mm:ss.fffffff"),
                          CorrelationID, CorrelationTime.ToString(@"yyyy-MM-dd HH:mm:ss.fffffff")));
 }
Beispiel #4
0
    public void MessageOriginality(float ArgumentMessage)      // для получения сообщения от нейрона (SendMessage)
    {
        MessageTime NewMessage = new MessageTime();

        NewMessage.Originality = ArgumentMessage;
        MessageList.Add(NewMessage);         // так заполняется список для подсчёта уровня новизны
    }
Beispiel #5
0
 public override String ToString()
 {
     if (IsSystemMessage)
     {
         return($"[{MessageTime.ToString("HH:mm:ss")}] [SYSTEM] {Message}");
     }
     else
     {
         return($"[{MessageTime.ToString("HH:mm:ss")}] [{UserName}] {Message}");
     }
 }
 public string GetMessgeForReceiver()
 {
     return($"{Message}{Environment.CommandLine}{MessageTime.ToString("F")}");
 }
 public string GetMessage()
 {
     return($"{Message}{Environment.NewLine}{MessageTime.ToString("F")}");
 }
Beispiel #8
0
 /// <summary>
 /// Format the log message in the default way to be printed to a log writer
 /// </summary>
 public override string ToString()
 {
     return($"[{MessageTime.ToString(DATE_FORMAT)}] <{Level}> in {AppName}.{Class.Name}: {Message}{Environment.NewLine}");
 }