[add]
add func NewFile
add NewLogger
code review