Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Add custom logger to msbuild #20

Closed
2 tasks
wjwwood opened this issue Mar 17, 2015 · 1 comment
Closed
2 tasks

Add custom logger to msbuild #20

wjwwood opened this issue Mar 17, 2015 · 1 comment
Labels
enhancement New feature or request

Comments

@wjwwood
Copy link
Contributor

wjwwood commented Mar 17, 2015

I did some research last night about getting colors out of msbuild since the output is really hard to read without it. But the best solution I could come up with is to make a custom logger for msbuild which outputs ANSI escape sequences rather than the normal Windows color system.

Combining this with the ANSI Jenkins plugin which I've already tested, should work nicely. Test is here:

http://54.183.26.131:8080/job/testing_ansi/10/console

Basically, ament build would need to build and provide the custom logger (a C# library) and pass it to msbuild. Here is a library someone put together that does just that:

https://github.com/abe545/strider-msbuild-logger/blob/5e64c710fcda3db7f9ae009f18a764216d5efb89/Logger.cs

AC:

  • ament build builds this library if on Windows and then passes it to the invocations of msbuild.
  • msbuild outputs ANSI escape sequences for colored text, allowing Jenkins or Cmder to process it.

This is obviously super low priority, but would be nice to have at some point.

@dirk-thomas dirk-thomas added the enhancement New feature or request label Oct 13, 2015
@dirk-thomas
Copy link
Contributor

Closing since the repo is archived.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants