Fix logger output. [Pail][Pail]
Formatting
More thread safety