Search backend: add logger to code monitor resolver
Created by: camdencheek
As in title. Part of reimplementing https://github.com/sourcegraph/sourcegraph/pull/36457 incrementally and so it fits search idioms.
Stacked on https://github.com/sourcegraph/sourcegraph/pull/38123
Test plan
Unit tests.