add simple logging library code