The mappings for java.util.logging levels to GAE log levels are:
    level >= SEVERE -> Error
    level >= WARNING -> Warn
    level >= INFO -> Info
    else Debug

We reserve the Critical level for errors such as escaping ServletExceptions
(e.g. errors that would cause 500s).

So, for example, if you want to log at GAE's Debug level, you should be able
to use Level.FINE, FINER, or FINEST (or even CONFIG).


On Mon, Aug 24, 2009 at 1:12 PM, Cliff Hill <[email protected]> wrote:

> I'm getting the impression I'm missing something ridiculously simple here.
> The logging levels I see access to (which show up in the log interface in
> the GAE dashboard) are:
>
> java.util.logger.Level.INFO -- Info
> java.util.logger.Level.WARNING -- Warning
> java.util.logger.Level.SEVERE -- Error
>
> But there also seems to be something for:
>
> Debug = ????
> Critical = ????
>
> Of particular interest to me is the Debug level, as I'd love to be able to
> use it if possible when I'm wanting debugging output on an app engine file,
> however I'm kinda stuck here. I've looked, and it appears these are levels
> in the Log4J system for apache, but if there is a way to have those other
> additional levels without using Log4J, I'd like to know.
>
> On Sat, Aug 22, 2009 at 1:12 PM, Xlorep DarkHelm <[email protected]>wrote:
>
>>
>> I'm in search of a way to get the non-standard (that is, not java
>> logging) levels which are apparently used in GAE/J. Like fatal, and
>> debug (specifically, I'd like to use the debug level). I'm having a
>> heck of a time doing this... do I need to make my own Level class
>> derived from the java base one, and make my own debug and fatal levels?
>>
>>
>
>
> --
> "I'm not responcabel fer my computer's spleling errnors" - Xlorep DarkHelm
> Website: http://darkhelm.org
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to