24 messages in com.googlegroups.google-calendar-help-dataapiRe: How do I handle RedirectRequiredE...
FromSent OnAttachments
Mark Swanson10 Oct 2006 21:08 
Mark Swanson11 Oct 2006 20:57 
Kyle Marvin12 Oct 2006 11:30 
Kyle Marvin12 Oct 2006 11:32 
Mark Swanson13 Oct 2006 10:30 
Mark Swanson14 Oct 2006 14:16 
Mark Swanson16 Oct 2006 08:26 
Kyle Marvin16 Oct 2006 08:37 
Mark Swanson16 Oct 2006 10:21 
Kyle Marvin16 Oct 2006 10:33 
Kyle Marvin16 Oct 2006 10:55 
Mark Swanson16 Oct 2006 11:37 
Mark Swanson16 Oct 2006 11:43 
Mark Swanson17 Oct 2006 10:47 
Mark Swanson19 Oct 2006 09:06 
H dude20 Oct 2006 12:45 
Mark Swanson20 Oct 2006 13:06 
H dude20 Oct 2006 15:06 
Mark Swanson20 Oct 2006 16:00 
Mark Swanson20 Oct 2006 17:06 
Mark Swanson20 Oct 2006 17:21 
Kyle Marvin23 Oct 2006 09:44 
Mark Swanson23 Oct 2006 22:56 
Kyle Marvin24 Oct 2006 12:53 
Subject:Re: How do I handle RedirectRequiredException: Moved Temporarily
From:Kyle Marvin (kmar@google.com)
Date:10/24/2006 12:53:07 PM
List:com.googlegroups.google-calendar-help-dataapi

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 <m.@scheduleworld.com> 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!

On 10/20/06, Mark Swanson <m.@scheduleworld.com> 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.