You mean something like this, to dynamically set the logger name based on the service using it, where loggerName comes from the pipeline so you can override if needed, otherwise it’ll work it out it automatically.
NSService parent = Service.getCallingService();
if (parent == null) {
parent = Service.getServiceEntry();
}
String parentPackage = parent.getPackage().getName();
if (loggerName == null || loggerName.isEmpty()) {
loggerName = parent.getPackage().getName() + "." + parent.toString().replace(':', '.');
}
#Integration-Server-and-ESB#webMethods-io-Integration#webMethods