log debug messages in level class to cout