add a way to query the info of the user in roster

add a class file to query the info of the user in roster
fix the bugs that %k should been %K
fix the bugs that the %k should been %K
add a struct to switch the type of logging