How to get log message from Publish?


Enonic version: 7.1.1
OS: Ubuntu 19

I want to retrieve the Publish log message from a content. Is it possible?


In Java, we’ve created a class that, in short, imports NodeService, NodeCommitEntry and then get the message with the following line:
final NodeCommitEntry nodeCommitEntry = nodeService.getCommit(new NodeCommitId().from(commitId));
The commitId value comes from RepoConnection -> getActiveVersion.