Support formated output in logger (Infof, Warnf, Errf, Debugf)
Rename some structs and functinons to make them private.