added logging contexts and a file sink.