style(hintLog): use switch and alternative logic to simplify style