Create a Logger service

I have in my environment:
IS (contains my flow services) ->
Mediator (services are deployed to Mediator) ->
CentraSite (used to virtualize the services and deploy them to the Mediator)
I want to create a log service to log the communication (Http + SOAP communication between the client and service)
-How I get the message context like in JAVA in a flow
-Are there maybe examples or built-in services have this or similar functionality like this


In IS, you can change the logging level for these functions:
0088 SOAP
0141 Web Service stack
the inbound/outbound SOAP envelope will be written to the server log.