editor: pass through logging configuration to the logger module
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 30 Dec 2013 12:17:49 +0000 (13:17 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 30 Dec 2013 12:17:49 +0000 (13:17 +0100)
src/fnpjs/runner.js

index 7797e24..2f00170 100644 (file)
@@ -1,4 +1,4 @@
-define(['libs/jquery', 'libs/underscore'], function($, _) {
+define(['libs/jquery', 'libs/underscore', 'fnpjs/logging/logging'], function($, _, logging) {
 
 'use strict';
 
@@ -77,6 +77,12 @@ var Runner = function(app, modules) {
         config = _.extend({
             rootSelector: 'body'
         }, _config);
+
+
+        if(config.logging) {
+            logging.setConfig(config.logging);
+        }
+
         app.initModules.forEach(function(moduleName) {
             getModuleInstance(moduleName).start();
         });