Error checking for FileLogger