Using the SL's Logger class instead of Buffering and writing into .log file