Crashing of logger fixed. Auto. logging trigger added.