logging

started logging.