You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mfs <fa...@gmail.com> on 2010/02/11 02:33:13 UTC

Re: Logging

Hello Guys,

I am using maven 2.2.1 and wondering if there has been any support added to
stream the build output to a file in addition to the console ?. Doesn't seem
to be the case taking a look at the JIRA issues, but just wanted to be sure.

We would like to publish the build logs to a centralized location, as part
of our nightly build and thats why I ask the above question.

Thanks in advance,

Farhan.


robert.egan wrote:
> 
> You're right.
> 
> AbstractMojo creates it's own Log interface based on System.out. It would 
> be nice if it at least attempted to find the plexus LoggerManager 
> component contained in the uber jar, and only used System.out if that 
> failed. It would then be possible to register a custom plexus component to 
> add that capability.
> 
> I've filed such a request in JIRA [MNG-3463]. Perhaps it will make it into 
> 2.1.
> 
> 
> Robert Egan
> 
> "Wayne Fay" <wa...@gmail.com> wrote on 03/13/2008 03:13:01 PM:
> 
>> Edit mvn.bat and redirect output somewhere using normal batch
>> file/shell script programming.
>> 
>> I don't know how you would accomplish this with Maven plugins and
>> doubt it is even possible with 2.0.x.
>> 
>> Wayne
>> 
>> On 3/13/08, robert.egan@aciworldwide.com <ro...@aciworldwide.com> 
> wrote:
>> > One of the "features" of the Ant build I inherited is the ability to
>> > auto-magically generate date/time stamped log files of the console 
> output.
>> >
>> > I'd like to be able to do something like that with the Maven build, 
> but I
>> > haven't been able to find any relevant documentation. Can anyone point 
> me
>> > in the right direction?
> 
> ----
> This email message and any attachments may contain confidential, 
> proprietary or non-public information.  The information is intended solely 
> for the designated recipient(s).  If an addressing or transmission error 
> has misdirected this email, please notify the sender immediately and 
> destroy this email.  Any review, dissemination, use or reliance upon this 
> information by unintended recipients is prohibited.  Any opinions 
> expressed in this email are those of the author personally.
> 
> 

-- 
View this message in context: http://old.nabble.com/Logging-tp16035833p27541016.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: Logging

Posted by mfs <fa...@gmail.com>.
Point noted.

Also, If lets say I use the linux "tee" command to stream the output to the
log file as well, is there any mean to direct this log file to the site
directory (or may be target directory) without hardcoding the path of it at
the command line. I would like to have a link to this generated link in the
generated site. Any thoughts would be appreciated..

Thanks,
Farhan.



brettporter wrote:
> 
> 
> On 11/02/2010, at 12:33 PM, mfs wrote:
> 
>> 
>> Hello Guys,
>> 
>> I am using maven 2.2.1 and wondering if there has been any support added
>> to
>> stream the build output to a file in addition to the console ?. Doesn't
>> seem
>> to be the case taking a look at the JIRA issues, but just wanted to be
>> sure.
>> 
>> We would like to publish the build logs to a centralized location, as
>> part
>> of our nightly build and thats why I ask the above question.
> 
> Only currently available in the Maven 3.0 alphas, and in that it goes only
> to the file, not to both.
> 
> You can alter your Maven installation to change log4j.xml in any version,
> but I'm not sure that is recommended :)
> 
> Cheers,
> Brett
> 
> --
> Brett Porter
> brett@apache.org
> http://brettporter.wordpress.com/
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Logging-tp16035833p27541177.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: Logging

Posted by Brett Porter <br...@apache.org>.
On 11/02/2010, at 12:33 PM, mfs wrote:

> 
> Hello Guys,
> 
> I am using maven 2.2.1 and wondering if there has been any support added to
> stream the build output to a file in addition to the console ?. Doesn't seem
> to be the case taking a look at the JIRA issues, but just wanted to be sure.
> 
> We would like to publish the build logs to a centralized location, as part
> of our nightly build and thats why I ask the above question.

Only currently available in the Maven 3.0 alphas, and in that it goes only to the file, not to both.

You can alter your Maven installation to change log4j.xml in any version, but I'm not sure that is recommended :)

Cheers,
Brett

--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/





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