Пример #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
            }
        }