logger: implement debug method