I am trying to add logs from the custom app (on v14) using
frappe.logger("frappe.web").debug("Log message created")
But there is nothing that gets logged. Am I missing any settings for v14.
The bench is in developer_mode already.
I am trying to add logs from the custom app (on v14) using
frappe.logger("frappe.web").debug("Log message created")
But there is nothing that gets logged. Am I missing any settings for v14.
The bench is in developer_mode already.
I had to call setLevel on the logger object. Like below
logger = frappe.logger("mrotask")
logger.setLevel("DEBUG")
logger.info("Running")
logger.info("Executing set_suggest_price task on {}".format(dateutils.get_datetime()))