substring to char, log setup