/// <summary> /// /// </summary> /// <param name="category"></param> /// <param name="exc"></param> /// <param name="messageTemplate"></param> /// <param name="level"></param> /// <param name="logArguments"></param> private void AddLog(LogCategory category, Exception exc, string messageTemplate, LogEventLevel level, params object[] logArguments) { var logParameters = CreateLogParameters(category); var pTemplate = messageTemplate ?? ""; pTemplate += " {@LogParameters}"; var list = logArguments; list = list.Concat(new[] { logParameters }).ToArray(); logAdapter.Write(level, exc, pTemplate, list); }