What does [40m[32minfo[39m[22m[49m means on DotNetCore logs

Viewed 1409

I have a DotNet Core application inside a Docker container and when I look into the logs produced by ILogger, I can see those characters:

[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[1] 
[40m[32minfo[39m[22m[49m: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2] 

Can you help me understand what they mean?

1 Answers

They're (remnants of*) ANSI escape sequences i.e. font formatting codes - this answer goes into considerable detail as to the available options..

*the necessary initial escape character isn't presented in your post, either because it wasn't captured into the logs or whatever you viewed the logs with didn't show it/process it and the subsequent [xxx sequences as a formatting escape sequence

Related