How to add Custom Logging Doctype in Log Settings

How can i add a custom doctype here. I am using that doctype for logging, and want to clear logs older than specific duration. Can we add it here somehow ?

That for, you have to override the validation or also frm.set_query in your custom app.