fork log() and logger() functions into two files

share the log_test