recovering logevent script

now belongs to odcommon