refactor log package

refactor log package