AArnott / CodeGeneration.Roslyn

Assists in performing Roslyn-based code generation during a build.
Microsoft Public License
408 stars 59 forks source link

Logger #75

Closed LokiMidgard closed 6 years ago

LokiMidgard commented 6 years ago

When I was debugging (while building in VS) this framework, I had sometimes an bug which threw an exception. This was cached and an return code of 3 was the result.

Also different Console.Writeline were not shown. I Could have probably raised the output level of the build to verbose or even diagnostic, but this generates to much noise.

I have added a Logging class that allows to Log text at different loglevels to the build output. In addition when returning a result of 3 now the exception will be logged to the output with highest log level.