debug logger: first draft