From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29168 invoked by alias); 23 Feb 2007 21:11:03 -0000 Received: (qmail 29161 invoked by uid 22791); 23 Feb 2007 21:11:02 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 Feb 2007 21:10:55 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l1NLArhY029843 for ; Fri, 23 Feb 2007 16:10:53 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l1NLAqm4009098 for ; Fri, 23 Feb 2007 16:10:53 -0500 Received: from [172.16.14.160] (tow.toronto.redhat.com [172.16.14.160]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l1NLAqHU009675 for ; Fri, 23 Feb 2007 16:10:52 -0500 Message-ID: <45DF585C.2050806@redhat.com> Date: Fri, 23 Feb 2007 21:11:00 -0000 From: Nurdin Premji User-Agent: Thunderbird 1.5.0.9 (X11/20070212) MIME-Version: 1.0 To: Frysk List Subject: Added cni logging methods. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00162.txt.bz2 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.