fixed logger not adding missing directories, Changed debuglines