middleware/logging config for ruby client