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:Robert Koberg (ro@koberg.com)
Date:Feb 4, 2009 12:54:31 pm
List:net.java.dev.jna.users

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.

Hi,

// INFO, WARN, DEBUG, ERROR, FATAL, OFF, ALL //Logger logger = Logger.getLogger("SomeLogger"); //Level lev = Level.toLevel("OFF"); //logger.setLevel(lev);

Logger rootLogger = LogManager.getRootLogger(); Level lev = Level.toLevel("OFF"); rootLogger.setLevel(lev);

best, -Rob

Thanks, Kunal