Search the marketplace for log and there you’ll find a number of modules that perform similar tasks.
The will provide you with the ideas to capture the logging generated in the standard mendix lognodes and then you can decide to use this information to send this to the logging server as required.