Re: Directing windows logging data to the active app console

2014-02-26 Thread Thorsten Schöning
Guten Tag Lucas Vickers,
am Mittwoch, 26. Februar 2014 um 17:53 schrieben Sie:

> I'm using LOG4CXX in a Microsoft application, and I'm
> unable to get access to the output via the standard application
> console.  In Unix and OS X environments, stdout is sufficient.  I
> know it's different in MS, so I was hoping someone knew what appender I 
> should be using.

STDOUT etc. are available under Windows as well, there shouldn't be
any difference. But if you have a GUI application, main vs. _wmain or
WinMain or stuff, there's simply no console which can show your
messages, but that has nothing to do with Log4cxx and it can't
influence this. At least form my knowledge. :-) So if you are missing
a console, you need to create one using AllocConsole or such on your
own.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms682528(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ms681944(v=vs.85).aspx

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning   E-Mail:thorsten.schoen...@am-soft.de
AM-SoFT IT-Systeme  http://www.AM-SoFT.de/

Telefon...05151-  9468- 55
Fax...05151-  9468- 88
Mobil..0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow



Directing windows logging data to the active app console

2014-02-26 Thread Lucas Vickers
Hi All,

I know this is a very basic question but I'm unable to find a solution.
 I'm using LOG4CXX in a Microsoft application, and I'm unable to get access
to the output via the standard application console.  In Unix and OS X
environments, stdout is sufficient.  I know it's different in MS, so I was
hoping someone knew what appender I should be using.

I'm currently using
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out

Thanks,
Lucas