Beispiel #1
0
        public static void WriteLine(string message, Connection channel, string category)
        {
            if (!NetTrace.Enabled)
            {
                return;
            }

            Trace.WriteLine(
                NetTrace.GetMessage(message, channel),
                category
                );
        }
Beispiel #2
0
        public static void WriteLineIf(bool condition, string message, Connection channel, NetTraceCategory category)
        {
            if (!NetTrace.Enabled)
            {
                return;
            }

            if (!NetTrace.ValidateCategory(category))
            {
                return;
            }

            Trace.WriteLineIf(
                condition,
                NetTrace.GetMessage(message, channel),
                NetTrace.GetCategoryName(category)
                );
        }
Beispiel #3
0
        public static void WriteLine(string message, Connection channel, NetTraceCategory category)
        {
            //Console.WriteLine(NetTrace.GetMessage(message, channel));
            if (!NetTrace.Enabled)
            {
                return;
            }

            if (!NetTrace.ValidateCategory(category))
            {
                return;
            }

            Trace.WriteLine(
                NetTrace.GetMessage(message, channel),
                NetTrace.GetCategoryName(category)
                );
        }