modified freeze script

Different logging configurations based on the given command