Implement username and thread logging (OMS-216)