Hello Rishi,
Did you enable native logging in your navigation profile:
Please also take a look at the documentation:
https://docs.mendix.com/refguide/mobile/building-efficient-mobile-apps/logging/
Hope this helps
Good luck!
Logging in a nanoflow is usually only visible in the console of the client or native app. In case of a web application, if you need server logs then call a microflow from your nanoflow and handle the logging there, as the user would normally be online.