Debugging Forge - force "ERROR" level

Hi there,

My use case:
In FE (Custom UI) i catch and error and I want to see this error in developer console in logs with level “ERROR”. For now I am invoking function which in back-end simple call console.log(payload.error_from_FE) but this will be just level “INFO” in logs. Is there a way to force level “ERROR”?

Maybe using console.error(payload.error_form_FE)?
Or what would be the best way to handle this?

Thank you

console.error is a completely fine way of logging errors.