I have a logger class that handles various information display with pretty colors (yay.). However, since it writes to the console in separated steps
Your class needs:
private static readonly object ConsoleWriterLock = new object();
Then you can lock on this before writing to the console.
lock(ConsoleWriterLock)
{
//Your code here
}
The lock keyword will work with a static class, you just need to provide a static readonly
object to lock on.