public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Added cni logging methods.
@ 2007-02-23 21:11 Nurdin Premji
  0 siblings, 0 replies; only message in thread
From: Nurdin Premji @ 2007-02-23 21:11 UTC (permalink / raw)
  To: Frysk List

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-23 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-23 21:11 Added cni logging methods Nurdin Premji

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).