lib/log: Cleanup log API