Object.defineProperty(exports, "__esModule", { value: true });
// Helper function code must never use native functions like console.log/warn/... etc
// because they can be overwritten by page JS.
// If the page JS in turn triggers another helper code console log call you get an
// infinite loop
let knownValues;
function initLogging(kv) {
    knownValues = kv;
}
exports.initLogging = initLogging;
function consoleLog(...args) {
    return knownValues.getValue("console.log").apply(this, arguments);
}
exports.consoleLog = consoleLog;
function consoleCount(...args) {
    return knownValues.getValue("console.count").apply(this, arguments);
}
exports.consoleCount = consoleCount;
function consoleWarn(...args) {
    return knownValues.getValue("console.warn").apply(this, arguments);
}
exports.consoleWarn = consoleWarn;
function consoleError(...args) {
    return knownValues.getValue("console.error").apply(this, arguments);
}
exports.consoleError = consoleError;
//# sourceMappingURL=logging.js.map