Example #1
0
        protected void EnrichLogEntry <T>(LogEntry logEntry) where T : ILogType
        {
            logEntry.UserId = GetAnonymizeUserId();
            logEntry.AppId  = RetrieveAppId();
            logEntry.AddRequestDataToLog(_httpContextAccessor.HttpContext);
            var logType = typeof(T).Name;

            logEntry.LogType = logType;
        }