There is this pattern which is commonly used in jQuery,  when you define the default settings in an object and then use $.extend(true, config, defaults) to get the settings. It may be also useful here to provide sane defaults for the logger, especially if it's gonna be used outside of this project.