add logging framework to models