add printlog script
add printlog script