add a log util
use as a library project