logger: add missing warn method