Ejemplo n.º 1
0
        private void RenderAppenderLogDatum(LogDatum logDatum, TextWriter writer)
        {
            if (!String.IsNullOrEmpty(logDatum.Message))
            {
                writer.Write(logDatum.Message + " ");
            }

            if (!String.IsNullOrEmpty(logDatum.GroupName))
            {
                writer.Write("Groupname: {0}, ", logDatum.GroupName);
            }

            if (!String.IsNullOrEmpty(logDatum.GroupName))
            {
                writer.Write("Streamname: {0}, ", logDatum.StreamName);
            }

            if (logDatum.Timestamp != default(DateTime))
            {
                writer.Write("Timestamp: {0}, ", logDatum.Timestamp.Value.ToString(CultureInfo.CurrentCulture));
            }
        }
 protected override void NewDatum()
 {
     _currentDatum = new LogDatum { };
 }