more flexible log file prefix handling