Made Logger.write() for efficient.