[core.logger] allow to enable simultaneous file logging

See the commit messages.