main: Convert to using the logging/debuggging fraemwork