logging application switches;
logging own code exception trace lines;