framework: add logger option

@xiaoyunwu 

In a few discussions, Xiaoyun has emphasized the ability of framework specific logging. This PR will enable this option.