Added pause/resumeLogging() functionality.