1.add log sys.
2 singleton template class