Suppose $\{X_\alpha \mid \alpha \in J\}$ is a family of measurable spaces. Let X denote the Cartesian product $\prod_{\alpha \in J} X_\alpha$ and consider the natural projections $\{\pi_\alpha: X \to X_\alpha \mid \alpha \in J\}$. Given a sigma-algebra $\mathcal{A}$ on $X$, define the property $P(\mathcal{A})$ to be that for any measurable space $W$ and any function $g: W \to X$, $g$ is measurable relative to $\mathcal{A}$ iff for each $\alpha \in J$, the function $f_\alpha \circ g$ from $W$ to $X_\alpha$ is measurable.
I suspect that the property $P(\mathcal{A})$ is the universal property of the product sigma-algebra and that it holds only for the product sigma-algebra on $X$, i.e. the sigma-algebra generated by the natural projections $\{\pi_\alpha: X \to X_\alpha \mid \alpha \in J\}$. To prove that, it's enough to prove that the sigma-algebra generated by the natural projections satisfies $P$ and that any other sigma-algebra $\mathcal{A}$ that satisfies $P(\mathcal{A})$ must be at the same time finer and coarser than the one generated by the natural projections.
I am having troubles with the finer part. Can you, dear reader, prove this?
This is indeed the universal property of the product.
Consider the definition of the universal property of the product: $\DeclareMathOperator{Hom}{Hom}$
Consider the following two theorems:
Now, we can state the following theorem:
Proof: Suppose the $\sigma$-algebra satisfies $P(\mathcal{A})$.
Note that since the identity map $1_{\prod\limits_{\alpha \in J} X_\alpha} : \prod\limits_{\alpha \in J} X_\alpha \to \prod\limits_{\alpha \in J} X_\alpha$ is measurable, each of the $\pi_\alpha$ is measurable, since $\pi_\alpha = \pi_\alpha \circ 1_{\prod\limits_{\alpha \in J} X_\alpha}$ is measurable by $P(\mathcal{A})$.
Suppose we have measurable functions $\{g_\alpha : W \to X_\alpha\}_{\alpha \in J}$. Then by the universal property of the product in the category of sets, there is a unique function $g : W \to X$ such that $\forall \alpha, \pi_\alpha \circ g = g_\alpha$. Then $g$ is measurable by $P(\mathcal{A})$. So the universal property of the product is satisfied.
Conversely, suppose the universal property of the product is satisfied. Suppose that for all $\alpha$, $\pi_\alpha \circ g$ is measurable. Consider the unique measurable function $h : W \to X$ such that for all $\alpha$, $\pi_\alpha \circ g = \pi_\alpha \circ h$. Therefore, $g = h$ by the universal property of the product of sets. Since $h$ is measurable and $h = g$, $g$ is measurable. Conversely, if $g$ is measurable, then for all $\alpha$, $\pi_\alpha \circ g$ is measurable, since the composition of measurable functions is measurable. $\square$
To finish the proof, note that the product $\sigma$-algebra $W$ clearly satisfies $P(W)$.
Now suppose we have two $\sigma$-algebras $W, Z$ on $\prod\limits_{\alpha \in J} X_\alpha$ which both satisfied $P(-)$, then consider the two measurable spaces $M = (\prod\limits_{\alpha \in J} X_\alpha, W)$ and $N = (\prod\limits_{\alpha \in J} X_\alpha, Z)$. Note that the identity maps $M \to N$ and $N \to M$ must both be measurable. Therefore, $W = Z$.