inject logging