Could you please provide some more details regarding your requirement? like what type of app you are using?
If you are using MANAGED package then we can’t do much regarding logs. But if you are using UN-MANAGED then you can put some debug according to your understanding to check the flow of the code and the values you are getting during various stages in code.