Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 protected virtual void FormatLogContent(LogEntity logEntity)
 {
 }
 protected override bool DoSave(LogEntity logEntity)
 {
     Console.WriteLine(logEntity.Content.LogInfo);
     return(true);
 }
Exemplo n.º 4
0
 protected abstract bool DoSave(LogEntity logEntity);
 protected override void FormatLogContent(LogEntity logEntity)
 {
     logEntity.Content.LogInfo = logEntity.Content.LogTrackInfo + " - " + logEntity.Content.LogInfo;
 }