refactored to structlog
tests for slogging