示例#1
0
 public override void Write(string message)
 {
     if (DiagDebugger.IsLogging())
     {
         DiagDebugger.Log(0, null, message);
     }
 }
示例#2
0
 private static void WriteToDebugger(string message)
 {
     if (Debugger.IsLogging())
     {
         Debugger.Log(0, null, message);
     }
     else
     {
         Interop.Sys.SysLog(Interop.Sys.SysLogPriority.LOG_USER | Interop.Sys.SysLogPriority.LOG_DEBUG, "%s", message);
     }
 }
示例#3
0
 private static void WriteToDebugger(string message)
 {
     if (Debugger.IsLogging())
     {
         Debugger.Log(0, null, message);
     }
     else
     {
         Interop.mincore.OutputDebugString(message ?? string.Empty);
     }
 }
示例#4
0
		private void WriteImpl(string message)
		{
			if (base.NeedIndent)
			{
				WriteIndent();
				WritePrefix();
			}
			WriteDebugString(message);
			if (Debugger.IsLogging())
			{
				Debugger.Log(0, null, message);
			}
			WriteLogFile(message, LogFileName);
		}
 private void internalWrite(string message)
 {
     if (Debugger.IsLogging())
     {
         Debugger.Log(0, null, message);
     }
     else if (message == null)
     {
         Microsoft.Win32.SafeNativeMethods.OutputDebugString(string.Empty);
     }
     else
     {
         Microsoft.Win32.SafeNativeMethods.OutputDebugString(message);
     }
 }
示例#6
0
 void internalWrite(string message)
 {
     if (Debugger.IsLogging())
     {
         Debugger.Log(0, null, message);
     }
     else
     {
         if (message == null)
         {
             SafeNativeMethods.OutputDebugString(String.Empty);
         }
         else
         {
             SafeNativeMethods.OutputDebugString(message);
         }
     }
 }
示例#7
0
        private static void internalWrite(string message)
        {
            if (Debugger.IsLogging())
            {
                Debugger.Log(0, null, message);
#if !FEATURE_PAL
            }
            else
            {
                if (message == null)
                {
                    Microsoft.Win32.SafeNativeMethods.OutputDebugString(String.Empty);
                }
                else
                {
                    Microsoft.Win32.SafeNativeMethods.OutputDebugString(message);
                }
#endif //!FEATURE_PAL
            }
        }