Add default logger closure
Clean up URL extraction and add a simple test