log: refactor code, rename source files

Change-Id: I4431ad711e1bcfa321d4f8d237df6a9d7ae38cbb