Exemple #1
0
        public void CheckTracing()
        {
            var path = Path.Combine(Path.GetTempPath(), Chutzpah.Constants.LogFileName);

            if (Settings.EnabledTracing)
            {
                ChutzpahTracer.AddFileListener(path);
            }
            else
            {
                ChutzpahTracer.RemoveFileListener(path);
            }
        }
        public static void Toggle(bool enable)
        {
            var path = Path.Combine(Path.GetTempPath(), Chutzpah.Constants.LogFileName);

            if (enable)
            {
                ChutzpahTracer.AddFileListener(path);
            }
            else
            {
                ChutzpahTracer.RemoveFileListener(path);
            }
        }