Fixed some warnings about deprecated functions, related to logging and file handling.