Log a Message

Overview

Contains a function that can be used to log a custom message that can be used by a designer/developer, to debug code for quicker development, and to log warnings, errors and informational messages.

Syntax: logmessage (level, message)

  • Level (Text) - The log level to be used from the following choices:
    • INFO
    • DEBUG
    • WARN
    • ERROR (Default)
  • Message (Text) - The custom message to be displayed

The function can be used to log a custom message.  The function can be used in Appian where expression rules can be specified e.g. SAIL, node inputs and outputs.

Anonymous
Parents
  • What do "info", "debug" and "warn" do?  When I just tested this (21.1), the only setting that actually gives me a log message is the "ERROR" log level.

    "WARN" seems to have given an actual error message - "1 services were missing users."

    "INFO" and "DEBUG" seem to do nothing.

  • Hi Mike,

    I might be wrong but this must be due to the logging level set for your cloud/on-prem instance. By default appian sets it to WARN. If your instance has INFO level logs on then you might be able to use it. I faced similar issue but did not try to change the logging level

Comment
  • Hi Mike,

    I might be wrong but this must be due to the logging level set for your cloud/on-prem instance. By default appian sets it to WARN. If your instance has INFO level logs on then you might be able to use it. I faced similar issue but did not try to change the logging level

Children