Updated logger to create session id if not given