logmsg(message, msgPrefix = '') {
        try {
            // determine if we need to show the msg based on the environment
            let sendToConsole;
            sendToConsole = false;
            if ((this.getEnvironment() === 'production' || this.getEnvironment() === 'prod') && this.showInProdEnv) {
                sendToConsole = true;
            }
            if ((this.getEnvironment() === 'test' || this.getEnvironment() === 'uat') && this.showInTestEnv) {
                sendToConsole = true;
            }
            if (this.getEnvironment() === 'dev') {
                sendToConsole = true;
            }
            // log the message to the console if required
            if (sendToConsole) {
                console.log(`${this.getMsgPrefix(msgPrefix)}>>> ` + message);
            }
        }
        catch (err) {
            console.log(`FATALERR: Error in DebugLogHelper.logmsg: ${JSON.stringify(err)}`);
        }
    }
/** Log a debug message if not production */
Log a debug message if not production
Log a debug message if not production
logmsg(message, msgPrefix = '') {
        try {
            let sendToConsole;
            sendToConsole = false;
            if ((this.getEnvironment() === 'production' || this.getEnvironment() === 'prod') && this.showInProdEnv) {
                sendToConsole = true;
            }
            if ((this.getEnvironment() === 'test' || this.getEnvironment() === 'uat') && this.showInTestEnv) {
                sendToConsole = true;
            }
            if (this.getEnvironment() === 'dev') {
                sendToConsole = true;
            }
            if (sendToConsole) {
                console.log(`${this.getMsgPrefix(msgPrefix)}>>> ` + message);
            }
        }
        catch (err) {
            console.log(`FATALERR: Error in DebugLogHelper.logmsg: ${JSON.stringify(err)}`);
        }
    }
logmsg ( message , msgPrefix = '' ) { try { let sendToConsole ; sendToConsole = false ; if ( ( this . getEnvironment ( ) === 'production' || this . getEnvironment ( ) === 'prod' ) && this . showInProdEnv ) { sendToConsole = true ; } if ( ( this . getEnvironment ( ) === 'test' || this . getEnvironment ( ) === 'uat' ) && this . showInTestEnv ) { sendToConsole = true ; } if ( this . getEnvironment ( ) === 'dev' ) { sendToConsole = true ; } if ( sendToConsole ) { console . log ( ` ${ this . getMsgPrefix ( msgPrefix ) } ` + message ) ; } } catch ( err ) { console . log ( ` ${ JSON . stringify ( err ) } ` ) ; } }
Log a debug message if not production
Log a debug message if not production
// determine if we need to show the msg based on the environment // log the message to the console if required