public static LogState Create(string message, object[] args) { var elms = new List <StateElement>(args.Length); var count = 0; foreach (var item in args) { var elm = new StateElement(count, item); elms.Add(elm); count++; } var state = new LogState(message, elms); return(state); }
private static void RawLog(LogLevel level, ILogger logger, Exception?exception, string message, params object[] args) { logger.Log <LogState>(level, GetId(logger), LogState.Create(message, args), exception, Formatter); }