NLog.Targets.FileTarget.Write C# (CSharp) Method

Write() protected method

Writes the specified logging event to a file specified in the FileName parameter.
protected Write ( LogEventInfo logEvent ) : void
logEvent LogEventInfo The logging event.
return void
        protected override void Write(LogEventInfo logEvent)
        {
            var fullFileName = this.GetFullFileName(logEvent);
            byte[] bytes = this.GetBytesToWrite(logEvent);
            ProcessLogEvent(logEvent, fullFileName, bytes);
        }

Same methods

FileTarget::Write ( NLog.Common.AsyncLogEventInfo logEvents ) : void