add a logging script