Esempio n. 1
0
        public static void WriteActionStart(IDECommonScope r, LogMessageScopeProxy log, string actioName, string[] names, object[] arguments)
        {
            // write user
            var userInfo = r.User?.Info;

            if (userInfo != null)
            {
                log.Write("[").Write(userInfo.DisplayName).Write("] ");
            }

            // write action an parameter
            log.Write(actioName);
            log.Write("(");
            for (var i = 0; i < names.Length; i++)
            {
                if (i > 0)
                {
                    log.Write(",");
                }

                if (names[i] != null)
                {
                    log.Write(names[i])
                    .Write("=")
                    .Write(FormatParameter(arguments[i], 20));
                }
            }
            log.WriteLine(")");
        }         // proc WriteActionStart
Esempio n. 2
0
 public static void WriteActionResult(LogMessageScopeProxy log, object result)
 {
     log.NewLine();
     log.WriteLine("Result: " + FormatParameter(result, 200));
 }         // WriteActionResult