Removes the old Log/ILog along with the concept of an ExternalLogger, updates the IAuditService to handle what the Log used to do

This commit is contained in:
Shannon
2015-12-23 15:22:45 +01:00
parent e005c5bba6
commit ca407d78cc
30 changed files with 244 additions and 1057 deletions

View File

@@ -3,6 +3,7 @@ using Umbraco.Core;
using Umbraco.Core.Models.Mapping;
using Umbraco.Web.Models.ContentEditing;
using umbraco.BusinessLogic;
using Umbraco.Core.Models;
namespace Umbraco.Web.Models.Mapping
{
@@ -10,8 +11,8 @@ namespace Umbraco.Web.Models.Mapping
{
public override void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext)
{
config.CreateMap<LogItem, AuditLog>()
.ForMember(log => log.LogType, expression => expression.MapFrom(item => Enum<AuditLogType>.Parse(item.LogType.ToString())));
config.CreateMap<AuditItem, AuditLog>()
.ForMember(log => log.LogType, expression => expression.MapFrom(item => item.AuditType.ToString()));
}
}
}