コード例 #1
0
        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);
        }
コード例 #2
0
 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);
 }