You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ez <er...@gmail.com> on 2009/01/20 09:10:03 UTC

Getting log4j output from ANT tasks to maven output

i'm using maven with antrun plugin. the ANT task i'm using uses log4j.
however, logging output does not get into maven's output.
instead i get this:
log4j:WARN No appenders could be found for logger
(com.i18n.Excel2Properties).
log4j:WARN Please initialize the log4j system properly.

what should i do?
-- 
View this message in context: http://www.nabble.com/Getting-log4j-output-from-ANT-tasks-to-maven-output-tp21558678p21558678.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting log4j output from ANT tasks to maven output

Posted by ez <er...@gmail.com>.
yep. this actually works :-) thanks

Kent Narling wrote:
> 
> I assume you mean to the console when you run maven on the command line,
> or?
> The default behaviour of maven is to just write to stdout, so if you
> configure the log4j file to do so as well, then if you just configure a
> CONSOLE appender in log4j your should get what you want?
> 
> 2009/1/22 ez <er...@gmail.com>
> 
>>
>> Well, I havn't..
>> So, i should just place log4j.properties file? how will i make it
>> redirect
>> all logs to maven output?
>>
>>
>> Jaikiran wrote:
>> >
>> >
>> >
>> > ez wrote:
>> >>
>> >> instead i get this:
>> >> log4j:WARN No appenders could be found for logger
>> >> (com.i18n.Excel2Properties).
>> >> log4j:WARN Please initialize the log4j system properly.
>> >>
>> >
>> > The warning is because the log4j.properties or log4j.xml is not present
>> in
>> > the classpath. Where have you placed it?
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Getting-log4j-output-from-ANT-tasks-to-maven-output-tp21558678p21609797.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> 
> -- 
> Kent Närling
> 
> System Architect
> SEAMLESS
> Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
> Phone: +46 8 5648 7800, fax: +46 8 5648 7823
> Mobile: +46 70 836 9925
> Mail: kent.narling@seamless.se
> www.seamless.se
> 
> 

-- 
View this message in context: http://www.nabble.com/Getting-log4j-output-from-ANT-tasks-to-maven-output-tp21558678p21644450.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting log4j output from ANT tasks to maven output

Posted by Kent Närling <ke...@seamless.se>.
I assume you mean to the console when you run maven on the command line, or?
The default behaviour of maven is to just write to stdout, so if you
configure the log4j file to do so as well, then if you just configure a
CONSOLE appender in log4j your should get what you want?

2009/1/22 ez <er...@gmail.com>

>
> Well, I havn't..
> So, i should just place log4j.properties file? how will i make it redirect
> all logs to maven output?
>
>
> Jaikiran wrote:
> >
> >
> >
> > ez wrote:
> >>
> >> instead i get this:
> >> log4j:WARN No appenders could be found for logger
> >> (com.i18n.Excel2Properties).
> >> log4j:WARN Please initialize the log4j system properly.
> >>
> >
> > The warning is because the log4j.properties or log4j.xml is not present
> in
> > the classpath. Where have you placed it?
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Getting-log4j-output-from-ANT-tasks-to-maven-output-tp21558678p21609797.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Kent Närling

System Architect
SEAMLESS
Dalagatan 100, 8 tr, 113 43 Stockholm, Sweden
Phone: +46 8 5648 7800, fax: +46 8 5648 7823
Mobile: +46 70 836 9925
Mail: kent.narling@seamless.se
www.seamless.se

Re: Getting log4j output from ANT tasks to maven output

Posted by ez <er...@gmail.com>.
Well, I havn't..
So, i should just place log4j.properties file? how will i make it redirect
all logs to maven output?


Jaikiran wrote:
> 
> 
> 
> ez wrote:
>> 
>> instead i get this:
>> log4j:WARN No appenders could be found for logger
>> (com.i18n.Excel2Properties).
>> log4j:WARN Please initialize the log4j system properly.
>> 
> 
> The warning is because the log4j.properties or log4j.xml is not present in
> the classpath. Where have you placed it?
> 
> 

-- 
View this message in context: http://www.nabble.com/Getting-log4j-output-from-ANT-tasks-to-maven-output-tp21558678p21609797.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Getting log4j output from ANT tasks to maven output

Posted by Jaikiran <ja...@yahoo.co.in>.


ez wrote:
> 
> instead i get this:
> log4j:WARN No appenders could be found for logger
> (com.i18n.Excel2Properties).
> log4j:WARN Please initialize the log4j system properly.
> 

The warning is because the log4j.properties or log4j.xml is not present in
the classpath. Where have you placed it?

-- 
View this message in context: http://www.nabble.com/Getting-log4j-output-from-ANT-tasks-to-maven-output-tp21558678p21598939.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org