One option if you want finer-grained control is to do the logging configuration programmatically, like:

     import java.util.logging.*;

     Logger gdataLogger = Logger.getLogger(HttpGDataRequest.class.getName ());
     gdataLogger.setLevel(Level.ALL);
     FileHandler fileHandler = new FileHandler("%h/gdata%u.log);
     fileHandler.setLevel(Level.ALL);
     gdataLogger.addHandler(fileHandler);

I believe this should do a more targetted elevation of logging levels for just the GData classes, and just the custom FileHandler you've associated with it.

Hope this helps!

-- Kyle

On 10/24/06, Mark Swanson <[EMAIL PROTECTED]> wrote:

Kyle Marvin wrote:
> Hi Mark,

Thank you Kyle. had trouble getting to this today.
I don't think I can enable ALL like that because iirc tomcat spews into
that. I will test in the morning.

> Here's a diff that shows changes that can be made to the default
> logging.properties file to enable request-level logging for GData
> clients to a file:
>
> 21c21
> < #handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
> ---
>> handlers= java.util.logging.FileHandler, java.util.logging.ConsoleHandler
> 29a30,31
>> com.google.gdata.client.http.HttpGDataRequest.level= FINER
>> com.google.gdata.client.http.GoogleGDataRequest.level= FINER
> 40a43
>> java.util.logging.FileHandler.level = ALL
>
> Hope this help!
>
> -- Kyle
>
> On 10/20/06, Mark Swanson <[EMAIL PROTECTED]> wrote:
>>>> Now I'm off to try to find out how to enable FINEST...
>>> Ok, I see you are using java.util.logging.*
>> Actually, I set the level to ALL in ../jre/lib/logging.properties
>>
>> .level= ALL
>> java.util.logging.FileHandler.pattern = %h/java%u.log
>>
>> Yet nothing is saved in my ~/java*log
>>
>> Please tell me how I should enable FINEST.
>>
>> Thank you.
>>
>>
>> --
>> http://www.ScheduleWorld.com/
>> Free Google Calendar synchronization with Outlook, Evolution,
>> cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird,
>> Pocket PC/Windows Mobile. Also sync tasks, notes and contacts!
>> WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support.
>>
>
> >
>


--
http://www.ScheduleWorld.com/
Free Google Calendar synchronization with Outlook, Evolution,
cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird,
Pocket PC/Windows Mobile. Also sync tasks, notes and contacts!
WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi
-~----------~----~----~----~------~----~------~--~---

Reply via email to