/// <summary> /// Trims all. /// </summary> public void TrimAll() { File = File == null ? string.Empty : File.Trim(); Method = Method == null ? string.Empty : Method.Trim(); Class = Class == null ? string.Empty : Class.Trim(); Throwable = Throwable.Trim(); App = App == null ? string.Empty : App.Trim(); HostName = HostName == null ? string.Empty : HostName.Trim(); UserName = UserName == null ? string.Empty : UserName.Trim(); MachineName = MachineName == null ? string.Empty : MachineName.Trim(); Message = Message.Trim(); Thread = Thread == null ? string.Empty : Thread.Trim(); Level = Level == null ? string.Empty : Level.Trim(); LogName = LogName == null ? string.Empty : LogName.Trim(); Line = Line.Trim(); Identity = Identity == null ? string.Empty : Identity.Trim(); NDC = NDC == null ? string.Empty : NDC.Trim(); Logger = Logger == null ? string.Empty : Logger.Trim(); }