plugin router and log hook