Refactored log functionality into Character