EXPERIMENTAL: make ns-filter check compile-time, add optional compile-time logging-level