Extract log messages to constants in websocket