Integrating logging functionality