NLog.Targets.Syslog.MessageCreation.MessageBuilder.BuildLogEntries C# (CSharp) Method

BuildLogEntries() public method

public BuildLogEntries ( LogEventInfo logEvent, Layout layout ) : string[]
logEvent LogEventInfo
layout NLog.Layouts.Layout
return string[]
        public string[] BuildLogEntries(LogEventInfo logEvent, Layout layout)
        {
            var originalLogEntry = layout.Render(logEvent);
            return splitOnNewLinePolicy.IsApplicable() ? splitOnNewLinePolicy.Apply(originalLogEntry) : new[] { originalLogEntry };
        }