In jupyterhub , is it possible to override the pages.py file with my own custom file

I am using jupyterhub currently with custom authenticator . For this I have used my own custom auth.py instead of the default one in apihandlers . My doubt is whether I can do the same with pages.py present in handlers as I would like to add more logging

Which handlers are you trying to debug? In general the majority of the work is done by the spawner or authenticator classes, which can be easily overriden.