Log to console

I am building console application in Windows (a XData Server), and would like to log some outputs to the console.

WriteLn('something');

works of course

but

TMSLogger.RegisterOutputHandlerClass(TTMSLoggerConsoleOutputHandler);
TMSLogger.Info('Starting server... ');

does not show up in the windows console

To log to the Windows console you should use TTMSLoggerWindowsConsoleOutputHandler, declared in unit TMSLoggingWindowsConsoleOutputHandler:


TMSLogger.RegisterOutputHandlerClass(TTMSLoggerWindowsConsoleOutputHandler);

How di I miss that! Thanks! It works.