Inject logging functions