logger working based on dependencies