add weak logger support