adding possibility to log userId
for non async option
for non async option
version