Hi

GEA by default using java.util.logging.Logger right?   Default 
logging.properties only contain one line:
.level = WARNING

Even I log the message with class name and method name as parameters, but 
the output still not display the class name and method name

[Code]

    private static final Logger logger = 
Logger.getLogger(MyClass.class.getName());
    logger.logp(Level.SEVERE, className, methodName, ">>>1111");
    logger.severe(">>>>2222");

[Output]
    [ERROR] >>>1111
    [ERROR] >>>2222

Where it didn't display the class name and method name that I pass in.  That 
is extremely hard in troubleshooting the message is log in which class.

For log4j, we can specify the output pattern in log4j.properties:
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n

So is that possible for java.util.Logger to have achieve the same output 
pattern like log4j?  Else if not, is that any guide we can use log4j in GAE?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/G-Cn2e5wtt8J.
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