Added an example showing how logging exceptions work.