Configure logging
Parse a port to an integer