feature: get a writable logfile from a list of candidates or generate a random one

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>