add demonstration of log method