Last active
December 28, 2015 16:48
-
-
Save stefanwalther/7531038 to your computer and use it in GitHub Desktop.
Helper functions to encapsulate console output for QlikView extensions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ------------------------------------------------------------------ | |
// QlikView Extension helper functions for sending some messages | |
// to console output | |
// (prevents errors if console object is not available) | |
// ------------------------------------------------------------------ | |
function ConsoleLog(msg) { | |
if (typeof console != "undefined") { | |
console.log(msg); | |
} | |
} | |
function ConsoleInfo(msg) { | |
if (typeof console != "undefined") { | |
console.info(msg); | |
} | |
} | |
function ConsoleError(msg) { | |
if (typeof console != "undefined") { | |
console.error(msg); | |
} | |
} | |
function ConsoleWarn(msg) { | |
if (typeof console != "undefined") { | |
console.warn(msg); | |
} | |
} | |
function ConsoleClear() { | |
if (typeof console != "undefined") { | |
console.clear(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment