Implemented global logging formatter to colorize console messages.