simple multi-level logger for console and file