Added a logging example.