Add timestamp to logging functions