예제 #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 != null)
                writer.Write("Timestamp: {0}, ", logDatum.Timestamp.Value.ToString(CultureInfo.CurrentCulture));
        }
예제 #2
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 != null)
            {
                writer.Write("Timestamp: {0}, ", logDatum.Timestamp.Value.ToString(CultureInfo.CurrentCulture));
            }
        }