Instrument agent logging

Logging internals instrumentation.  @peterbourgon @bernerdschaefer