Remove obsolete stuff in Logger and simplify the set folder method.