mentby.com
Blog | Jobs | Help | Signup | Login

loading
Greetings,

I am using Java 7, IBM JRE and Apache Tomcat 7.0.37. I am seeing a
strange difference between java.util.logging.SimpleFormatter vs
org.apache.juli.OneLineFormatter: namely, for my applications, the
SimpleFormatter will produce log records with the Class name included
but OneLineFormatter will not. The exact same application, with only
changes to the .formatter are enough to show this change.

I think this is a bug; If I use javap on my unpacked class files, I
see that they do in fact have all the debug details. Why does
OneLineFormatter show me null.null when SimpleFormatter will show the
class name? This is very frustrating, and has been going on for quite
a while..

Thank you,
-Jesse

--
There are 10 types of people in this world, those
that can read binary and those that can not.

Read more »

Problem with log level in tomcat.

Thu, 28 Feb 2013 03:47:46 -0800 Post Comments

Greetings,

You configured the logging handlers only, and picked up the default
logging level. Append the line:

.level = ALL

and then restart Apache Tomcat. After that, a detailed review of http://tomcat.apache.org/tomcat-7.0-doc/logging.html  would be useful
for you.

-Jesse

--
There are 10 types of people in this world, those
that can read binary and those that can not.
Greetings

I'm seeing some odd behavior with a custom Apache Maven extension
intended to force on error message mode (-e). The extension can be
found here  https://gist.github.com/63e65486e60124a3e8f7

The extension loads fine, and I see the log message found in the
extension, but it doesn't actually enable error message mode! I verify
error message mode is not enabled via the extension by causing an
error in a project, e.g. dependency on junit:junit:666, and observing
the difference with and without -e passed to mvn.

Would someone please tell me the magic incantation to programmatically
get error message mode enabled? It appears that setting
MavenExecutionRequest.setShowErrors(true) should do the trick, but
perhaps this is read once and never again, which occurs before the
extension gets loaded?

Any help is appreciated,
-Jesse

--
There are 10 types of people in this world, those
that can read binary and those that can not.
Profile Widget
Copy and paste this HTML code to your blog or website: