Example #1
0
        public static void WriteNewLineIf(bool condition)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendIf(condition, Environment.NewLine);
            }
            else
            {
                ChoTrace.WriteLineIf(condition, Environment.NewLine);
            }
        }
Example #2
0
        public static void WriteIf(bool condition, string format, params object[] args)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendIf(condition, String.Format(format, args));
            }
            else
            {
                ChoTrace.WriteIf(condition, String.Format(format, args));
            }
        }
Example #3
0
        public static void WriteIf(bool condition, string msg)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendIf(condition, msg);
            }
            else
            {
                ChoTrace.WriteIf(condition, msg);
            }
        }
Example #4
0
        public static void Write(string msg)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.AppendIf(true, msg);
            }
            else
            {
                ChoTrace.Write(msg);
            }
        }