add test and improve clogging with specific method of warning, critical, etc.