Logging with JavaScript
Use logger.info() and logger.error() to log information in JavaScript contexts: logger.info("The value of x =" + x);
You can view the output of this method in the Mirth® Connect Dashboard's Server Log. The default logging level, ERROR, is the quickest, having the least amount of overhead. INFO and DEBUG levels give more details but have more overhead, so are somewhat slower. You can change the logging level via the Mirth® Connect Server Manager for users who run the latest version of Mirth® Connect on a Mac ( Applications > Mirth Connect > mcmanager) or PC: