Here is your learning path to learn all about logging: https://academy.mendix.com/link/paths/104/Track-Application-Behavior-with-Logginghttps://academy.mendix.com/link/paths/104/Track-Application-Behavior-with-Logging
And here is the one about error handling: https://academy.mendix.com/link/paths/81/Error-Handling