[EMAIL PROTECTED] wrote:

>Hi All,
>
>
>I have this sinking feeling that this is going to in fact be very difficult
>as each task/target formats their log messages individually so that targets
>have their name prefixed with a : and targets are wrapped like this [task]
>at the point of log message creation (well the brackets are added in the
>LogPrefix property).
>  
>
I think your sinking feeling is warranted and the logging system will 
need some reworking to handle customisable output formats.

>If I am not missing something easier, upon reviewing of the code, I don't
>see any easy way to get XML output but here are the ways I see -- all of
>which would mean quite a bit of code changing:
>
>1) Change the logging so that it produces unformatted text, and then a
>formatter that produces the console style (or xml) output ( a lot of work)
>2) Implement a logging system like Ant's that has log events, and allow the
>logger to handle those events as makes sense (even more work)
>3) pattern match the target: name based on the : and the task name based on
>the [ ]  wrapper and just emit xml from an XmlLogger -- Hard to determine
>where elements end, and even harder to know whether : and [ ] are not false
>positives in the output (plus this says nothing about informational
>messages) and really kludgey to boot.
>  
>
I think that 1 or 2 are the better options with 2 being the cleanest but 
the most work. I haven't looked at Ants logging system to be sure though.

Ian




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to