Wrap logging for simplicity and security