Skip to content

Instantly share code, notes, and snippets.

@stefanwalther
Last active December 28, 2015 16:48
Show Gist options
  • Save stefanwalther/7531038 to your computer and use it in GitHub Desktop.
Save stefanwalther/7531038 to your computer and use it in GitHub Desktop.
Helper functions to encapsulate console output for QlikView extensions.
// ------------------------------------------------------------------
// 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