Add missed import.
Add buffer flush into Logger class.