add log model
jshint code