From 588d7e070dc10575a1c4dc3cba3b7c777142617b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 30 Dec 2013 13:17:49 +0100 Subject: [PATCH] editor: pass through logging configuration to the logger module --- src/fnpjs/runner.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fnpjs/runner.js b/src/fnpjs/runner.js index 7797e24..2f00170 100644 --- a/src/fnpjs/runner.js +++ b/src/fnpjs/runner.js @@ -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(); }); -- 2.20.1