api/logger: add json and xml