web/data/cubicweb.log.js
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 12 Dec 2013 15:38:49 +0100
changeset 9368 10694dd136f3
parent 7995 9a9f35ef418c
permissions -rw-r--r--
[devtools] bases for instrumenting / debugging standard propagation hooks * a class that helps writing command to check propagation, detecting standard errors and picture the propagation as a graph * a class to instrument sets used to configure standard propagation hooks closes #3171980

// This contains template-specific javascript

function filterLog(domid, thresholdLevel) {
    var logLevels = ["Debug", "Info", "Warning", "Error", "Fatal"]
    var action = "hide";
    for (var idx = 0; idx < logLevels.length; idx++){
        var level = logLevels[idx];
        if (level === thresholdLevel){
            action = "show";
        }
        $('#'+domid+' .log' + level)[action]();
    }
}