consolidated user and internal log functions with a router