5 messages in net.java.dev.jna.usersRe: [jna-users] Log statements of C/C...
FromSent OnAttachments
Kunal ShahFeb 4, 2009 12:46 pm 
Robert KobergFeb 4, 2009 12:54 pm 
LYou...@gkservices.comFeb 4, 2009 1:19 pm 
Timothy WallFeb 4, 2009 1:44 pm 
Kunal ShahMar 7, 2009 4:24 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Log statements of C/C++ to Java loggerActions...
From:Timothy Wall (twal@dev.java.net)
Date:Feb 4, 2009 1:44:41 pm
List:net.java.dev.jna.users

a) figure out how to redirect your output streams in C to your desired output b) map it to JNA

The easiest would probably be to redirect to a file or a socket, then read it from Java and spit out to the java logger. how you redirect stdout/cout depends on your application, though, and not really related to JNA itself.

On Feb 4, 2009, at 3:46 PM, Kunal Shah wrote:

I am working on a C/C++ application which generates tons of logs. I am looking forward to find a way to specify C/C++ application's 'stdout/printf' output on a log4j/logger.

I am not looking for a fancy functionality like, debug/info/error. All I need is a way to turn ON/OFF the logs.

Thanks, Kunal