introduce log level flags (LOG_FLAG_RESTORE)