I turned on "-Dlog4j.debug".  It looks like in fornax-oaw-m2-plugin 2.1.1,
log4j finds the log4j.properties file from oAW that limits the amount of
logging:

[INFO] [fornax-oaw-m2:run-workflow {execution: generate-main}]
[INFO] oAW Maven2 Plugin V2.1.1
log4j: Trying to find [log4j.xml] using context classloader
org.codehaus.classworlds.realmclassloa...@1bbdd48.
log4j: Trying to find [log4j.xml] using
org.codehaus.classworlds.realmclassloa...@1bbdd48 class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader
org.codehaus.classworlds.realmclassloa...@1bbdd48.
log4j: Using URL [jar:file:/C:/Documents and
Settings/pchang/.m2/repository/org/openarchitectureware/oaw-core-workflow/4.3.1/oaw-core-workflow-4.3.1.jar!/log4j.properties]
for automatic log4j configuration.
log4j: Reading configuration from URL jar:file:/C:/Documents and
Settings/pchang/.m2/repository/org/openarchitectureware/oaw-core-workflow/4.3.1/oaw-core-workflow-4.3.1.jar!/log4j.properties
log4j: Parsing for [root] with value=[INFO, A1 ].
log4j: Level token is [INFO].
log4j: Category root set to INFO
log4j: Parsing appender named "A1".
log4j: Parsing layout options for "A1".
log4j: Setting property [conversionPattern] to [%-4r %-5p %-18C{1} - %m%n].
log4j: End of parsing for "A1".
log4j: Parsed "A1" options.
log4j: Parsing for [de.hunsicker] with value=[ERROR].
log4j: Level token is [ERROR].
log4j: Category de.hunsicker set to ERROR
log4j: Handling log4j.additivity.de.hunsicker=[null]
log4j: Finished configuring.
0    INFO  WorkflowRunner     -
--------------------------------------------------------------------------------------
0    INFO  WorkflowRunner     - openArchitectureWare v4.3.1
0    INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org and
contributors
0    INFO  WorkflowRunner     -
--------------------------------------------------------------------------------------
0    INFO  WorkflowRunner     - running workflow: workflow.oaw
0    INFO  WorkflowRunner     -

After switching to fornax-oaw-m2-plugin 3.0.1, log4j is no longer looking
for the file:

[INFO] [fornax-oaw-m2:run-workflow {execution: generate-main}]
[INFO] Fornax oAW/MWE Maven2 Plugin V3.0.1
[org.openarchitectureware.workflow.WorkflowRunner] :
--------------------------------------------------------------------------------------
[org.openarchitectureware.workflow.WorkflowRunner] : openArchitectureWare
v4.3.1
[org.openarchitectureware.workflow.WorkflowRunner] : (c) 2005-2008
openarchitectureware.org and contributors
[org.openarchitectureware.workflow.WorkflowRunner] :
--------------------------------------------------------------------------------------
[org.openarchitectureware.workflow.WorkflowRunner] : running workflow:
workflow.oaw
[org.openarchitectureware.workflow.WorkflowRunner] :

What changed in the plugin in 3.0.1?  Can you change it back?

Thanks,
--Polly


On Tue, Jun 23, 2009 at 5:44 PM, polly.c.chang <polly.c.ch...@gmail.com>wrote:

>
> Hi,
>
> I tried updating fornax-oaw-m2-plugin from version 2.1.1 to 3.0.1.  It
> looks
> like logging has changed.  I now gets *tons* of debug output that I never
> used to see, like:
>
> [org.openarchitectureware.xpand2.output.FileHandleImpl] : Opening file :
> C:\projects\runtime\com.foo.model\src\main\java\com\foo\model\package.html
> [org.openarchitectureware.xpand2.output.FileHandleImpl] : Skipping file :
> C:\projects\runtime\com.foo.model\src\main\java\com\foo\model\package.html
> cause it exists already
>
> How do I change the log level?  I have a log4j.xml file under
> src/test/resources that I use with SureFire, but this does not affect the
> oAW output.
>
> Please advise.
>
> Thanks!
> --Polly
> --
> View this message in context:
> http://www.nabble.com/logging-with-fornax-oaw-m2-plugin-tp24175022s17564p24175022.html
> Sent from the Fornax-Platform mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>
------------------------------------------------------------------------------
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to