Source/NFX/Log/LogBatcher.cs
/// <summary>
/// Override to turn accumulated batch state into a series of log messages
/// </summary>
Override to turn accumulated batch state into a series of log messages
Override to turn accumulated batch state into a series of log messages
protected virtual IEnumerable<Message> MakeMessages()
    {
      var txt = new StringBuilder();
      txt.AppendLine("Batched {0} types:".Args(m_Data.Count));
      foreach(var kvp in m_Data)
      {
        txt.AppendLine("  ");
        txt.AppendLine(kvp.Value.ToString());
      }
      var msg = new Message
      {
        Type = this.Type,
        Channel = this.Channel,
        Topic = this.Topic,
        From = this.From,
        Text = txt.ToString()
      };
      yield return msg;
    }
protected virtual IEnumerable < Message > MakeMessages ( ) { var txt = new StringBuilder ( ) ; txt . AppendLine ( " " . Args ( m_Data . Count ) ) ; foreach ( var kvp in m_Data ) { txt . AppendLine ( " " ) ; txt . AppendLine ( kvp . Value . ToString ( ) ) ; } var msg = new Message { Type = this . Type , Channel = this . Channel , Topic = this . Topic , From = this . From , Text = txt . ToString ( ) } ; yield return msg ; }
Override to turn accumulated batch state into a series of log messages
Override to turn accumulated batch state into a series of log messages