Refactored log client