Loupe - Log - Monitor - Resolve
Gibraltar.Monitor.Net Namespace / ConsoleListener Class / RegisterConsoleIntercepter Method

In This Topic
    RegisterConsoleIntercepter Method
    In This Topic
    Registers new ConsoleIntercepter on Console.Out and Console.Error.
    Syntax
    'Declaration
     
    
    Public Shared Sub RegisterConsoleIntercepter() 
    public static void RegisterConsoleIntercepter()
    Remarks
    This attempts to get the Console's InternalSyncObject to protect the operations as atomic, but will make a best-effort to do them even if the lock object could not be obtained.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also