So please add flag for choosing time between tries or number tries.
As you can see, this is not a log file. This is a screenshot. From this screenshot I see only that you get error #7, I get this error if geth is not started.
So the problem probably is not in miner. My test is easy: empty command line and empty "config.txt" and one line in epools.txt:
POOL:
http://localhost:8545