For sql logging, if we have a section use that, else use the main log file