fixed #23 when logger not exists, use console default.