Added __file__ saving to logging