logging assembly discovery

#1562
use `[NotNull]` here and other places where we expect to always have a value