add .log method