Once logs API package is stable we should move the code to main api package, creating this issue to track the work.