Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Logging with the JS7 Logger

A JavaScript Job can use the JS7 Logger like this:

...

  • The js7Step.getLogger() object is provided that offers related methods for logging.
  • For details see JS7 - Job API.

Logging with the Console Logger

A JavaScript Job can use the Console Logger like this:

Code Block
languagejs
titleExample for implementation of JS7Job with JavaScript
linenumberstrue
class JS7Job extends js7.Job {

	processOrder(js7Step) {
		console.info('.. logging an information');
        console.log('.. logging an information');
		console.warn('.. logging a warning');
		console.error('.. logging an error');
		console.debug('.. logging debug output');

        // do some stuff
    }
}

Further Resources

...