Logging update

Header creates only when new file creates