Further cleaned up DefaultLogger.
Note: It's a very stupid idea to play with nulls when logging.