log: split apart the package into smaller files.