Implemented logging to file in snark worker. This change was initially applied to repo from scripts/hardfork/localnet-patches every time when running tests. Currently it is merged to compatible.