Add package `logger`
Fix `Makefile` non-failure on packages tests
Make `DurationToRange` use slice instead of map