In what sense do we use "carry a torch for"?
Can it be used as a formal, or is it informal?
This question is too basic; it can be definitively and permanently answered by a single link to a standard internet reference source designed specifically to find that type of information. See the FAQ for guidance on how to improve it.
It is informal and it basically means that someone has a crush, or has unfulled desires for someone else.