add log submodule
change printf to log and add config module