Refactor log method
2.0.0