Refactored becose static methods are threadsafe
Moved format to concrete logEntry