Detecting log levels from log4net messages

In our Octopus deployment processes, we’re often calling into tools that use log4net for logging. The log message pattern includes tags such as WARN or ERROR that indicate the log level of the message. Is there some good way or practice to have Octopus deploy detect these tags and interpret/highlight the messages accordingly?

I already know about the Octopus service messages (Logging messages from scripts - Octopus Deploy), but I don’t think I can easily configure log4net to output such instructions?

Hi @fschmied,
Welcome and thanks for this question!

If those tools don’t return back those warnings or errors in some kind of error stream you can use, then your best option is to follow those tool run steps with a script step that reads the log file for those messages and outputs them similar to that link you posted.

Happy deployments!
Mark