Armed robber tracked down by logo on his hat