support debug log with levels