This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Added cni logging methods.
- From: Nurdin Premji <npremji at redhat dot com>
- To: Frysk List <frysk at sourceware dot org>
- Date: Fri, 23 Feb 2007 16:10:52 -0500
- Subject: Added cni logging methods.
I've added some methods to frysk/sys/cni/Errno.hxx called:
logMessage (jobject myThis, Logger logger, Level level, char* msg, ...)
this will print a log message to the given logger where msg, ... is a
printf style message, so you can check values of ints and pointers and such.
jLogMessage (jobject myThis, Logger logger, Level level, char * msg, ...)
this will print a log message to the given logger where msg should be a
string of the form:
"functionName Object value: {1} Object2 value: {2} ..." followed by
jobjects for each value.
Note that both methods should be called with the first argument as
"this" and prepend a "{0} " to the front of the string so that the
object gets printed out.