diff --git a/doc/manual/de/config/url-params.rst b/doc/manual/de/config/url-params.rst index abff59ed587..a6bf6c55099 100644 --- a/doc/manual/de/config/url-params.rst +++ b/doc/manual/de/config/url-params.rst @@ -201,14 +201,3 @@ Browser-Console (öffnen mit F12) ``downloadLog()`` ein gibt und mit *enter* bes Da die Log-Dateien in Echtzeit abgespielt werden, empfiehlt es sich die Laufzeit möglichst kurz zu halten. Eine Log-Datei die 30 Minuten oder mehr läuft bis das Problem zu sehen ist, wird die Fehlerbehebung erschweren, da der Entwickler diese ggf. sehr oft abspielen muss während der Fehleranalyse und -behebung. - - -.. _log: - -*log* - Logging in der Browserconsole an-/abschalten - -Mit diesem Parameter können die Debug-Logausgaben auf der Browserkonsole ein- und ausgeschaltet werden. -In der Entwicklerversion sind diese standardmäßig eingeschaltet in einem Release aus. - - Default: false im Release, true in Entwicklerversion - Options: true (log=true), false (log=false) \ No newline at end of file diff --git a/source/class/cv/Application.js b/source/class/cv/Application.js index 7180277d38e..0ce10394ac3 100644 --- a/source/class/cv/Application.js +++ b/source/class/cv/Application.js @@ -142,12 +142,11 @@ qx.Class.define("cv.Application", // run svg4everybody to support SVG sprites in older browsers svg4everybody(); - // support native logging capabilities, e.g. Firebug for Firefox - //noinspection BadExpressionStatementJS,JSHint - cv.log.appender.Native; - // Enable logging in debug variant if (qx.core.Environment.get("qx.debug")) { + // support native logging capabilities, e.g. Firebug for Firefox + //noinspection BadExpressionStatementJS,JSHint + qx.log.appender.Native; // support additional cross-browser console. Press F7 to toggle visibility //noinspection BadExpressionStatementJS,JSHint qx.log.appender.Console; diff --git a/source/class/cv/Config.js b/source/class/cv/Config.js index bba99f8d3a7..65c51d3cd65 100644 --- a/source/class/cv/Config.js +++ b/source/class/cv/Config.js @@ -163,11 +163,6 @@ qx.Class.define('cv.Config', { */ reporting: false, - /** - * Set console logging - */ - enableLogging: true, - /** * Get the structure that is related to this design * @param design {String?} name of the design @@ -269,13 +264,6 @@ qx.Class.define('cv.Config', { cv.Config.enableCache = req.queryKey.enableCache ? req.queryKey.enableCache === "true" : true; } - cv.Config.enableLogging = qx.core.Environment.get("html.console"); - if (req.queryKey.log === "false") { - cv.Config.enableLogging = false; - } else if (req.queryKey.log === "true") { - cv.Config.enableLogging = true; - } - // "Bug"-Fix for ID: 3204682 "Caching on web server" // Config isn't a real fix for the problem as that's part of the web browser, // but diff --git a/source/class/cv/log/appender/Native.js b/source/class/cv/log/appender/Native.js deleted file mode 100644 index 04c8799c2a5..00000000000 --- a/source/class/cv/log/appender/Native.js +++ /dev/null @@ -1,66 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2004-2008 1&1 Internet AG, Germany, http://www.1und1.de - - License: - MIT: https://opensource.org/licenses/MIT - See the LICENSE file in the project's top-level directory for details. - - Authors: - * Sebastian Werner (wpbasti) - - ************************************************************************ */ - -/** - * Processes the incoming log entry and displays it by means of the native - * logging capabilities of the client. Can be disable during runtime - * - * @require(qx.log.appender.Util) - * @require(qx.bom.client.Html) - */ -qx.Bootstrap.define("cv.log.appender.Native", - { - /* - ***************************************************************************** - STATICS - ***************************************************************************** - */ - - statics : - { - /** - * Processes a single log entry - * - * @param entry {Map} The entry to process - */ - process : function(entry) - { - if (cv.Config.enableLogging) { - // Firefox 4's Web Console doesn't support "debug" - var level = console[entry.level] ? entry.level : "log"; - if (console[level]) { - var args = qx.log.appender.Util.toText(entry); - console[level](args); - } - } - } - }, - - - - - /* - ***************************************************************************** - DEFER - ***************************************************************************** - */ - - defer : function(statics) { - qx.log.Logger.register(statics); - } - });