raw_listener.c: logging: convert LOG to LM_*