public bool SaveLog(LogEntity logEntity) { if (!this.IsSaveWithConfiguration(logEntity)) { return(false); } if (!this.ValidateLogEntity(logEntity)) { return(false); } if (!this.DoSave(logEntity)) { return(false); } return(true); }
protected virtual void FormatLogContent(LogEntity logEntity) { }
protected override bool DoSave(LogEntity logEntity) { Console.WriteLine(logEntity.Content.LogInfo); return(true); }
protected abstract bool DoSave(LogEntity logEntity);
protected override void FormatLogContent(LogEntity logEntity) { logEntity.Content.LogInfo = logEntity.Content.LogTrackInfo + " - " + logEntity.Content.LogInfo; }