This is the mail archive of the frysk@sources.redhat.com mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]