Welcome Guest  |  Register  |  Login
Login Name Password
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help
  Search  


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
Post new Thread
Author
Previous Thread This topic has been viewed 445 times and has 2 replies Next Thread
Male fuege
Novice



Germany
Joined: Aug 20, 2005
Post Count: 26
Status: Offline
Reply to this Post  Reply with Quote 
JDK logger configuration for Maven plugin's enhancement goal

The question is how to set up the logging configuration using JDK logger for Maven plugin's enhance goal
(I'm using the M2 plugin, but I guess it applies to the Maven1 plugin as well).

Rationale: the ASM enhancer is too verbose, IMHO, using INFO level instead of DEBUG e.g. (see: recent thread).

While log4.configuration is 'configurable' via the DataNucleus Maven plugin, the same is not true for JDK logger,
as far as I read the docs and doing some code review, right?

Workaround:
Set
DataNucleus.Enhancer.level=WARNING
in a config file and

1) Define the JDK logger configuration on CMD like:
mvn -Djava.util.logging.config.file=src/main/config/logging.properties clean install
which is inconvenient, or

2) set it in the default config file:
JDK_HOME/jre/lib/logging.properties

So, did I miss something that'll do the trick or
is this issue worth a feature request concerning logger configuration in the Maven plugins?
----------------------------------------
André Fügenschuh
[Aug 14, 2008 1:24:08 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Male jfrantzius
Advanced Member
Member's Avatar

Germany
Joined: Jun 18, 2004
Post Count: 405
Status: Offline
Reply to this Post  Reply with Quote 
Re: JDK logger configuration for Maven plugin's enhancement goal

Yes, the maven2 enhancer plugin specifically is to verbose currently. Please file an issue in JIRA.
[Aug 16, 2008 10:04:46 AM] Show Printable Version of Post    View Member Profile    Send Private Message    http://www.artnology.com [Link] Report threatening or abusive post: please login first  Go to top 
Male fuege
Novice



Germany
Joined: Aug 20, 2005
Post Count: 26
Status: Offline
Reply to this Post  Reply with Quote 
Re: JDK logger configuration for Maven plugin's enhancement goal

To be precise, these are two different issues.

a) Missing ability to configure JDK logging in the Maven plugin(s)!
b) org.datanucleus.enhancer.asm.JdoClassChecker too verbose by default?

So, I filed two RFE's in JIRA

a) Maven Plugin: missing JDK logging configuration
b) ASM: enhancement process too verbose
----------------------------------------
André Fügenschuh
[Aug 17, 2008 3:06:18 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Show Printable Version of Thread  Post new Thread