we'd like to log user activities in Nexus like:
How should the loggers be configured in Nexus to be able to achieve it?
If you're on a reasonably recent version of Nexus check the sonatype-work/nexus/logs/request.log, the user ID associated with all requests is printed in the third column.