turned NoLogging object to a class for better testability