memory heap and file logging