refactored filter to allow more easily add custom logger fields