Hi team,
Whenever I use frappe.logger().error or frappe.logger().critical the logs are logged in frappe.log file. How can I add debug logs? Is there any configuration that we need to add?
Hi team,
Whenever I use frappe.logger().error or frappe.logger().critical the logs are logged in frappe.log file. How can I add debug logs? Is there any configuration that we need to add?
To call it, from code you can just write: frappe.log_error(frappe.get_traceback(), 'payment failed')
This will immediately log it into the Error Log doctype (which is MyISAM type, so you need not commit) and can be viewed by the user or administrator.