@pathmaker-digital/pmd-utilities - v2.2.6
    Preparing search index...

    Function globalLog

    Logs a message to the appropriate output based on the current global logger context. Accepts either a plain string or a structured object with environment-specific log messages.

    • For string messages: logs directly if env is not production + debug.
    • For structured messages: logs based on matching env and logLevel.

    The message to log, either as a string or a structured GlobalLogMessage.

    • Logs a message to the appropriate output based on the current global logger context. Accepts either a plain string or a structured object with environment-specific log messages.

      • For string messages: logs directly if env is not production + debug.
      • For structured messages: logs based on matching env and logLevel.

      Parameters

      Returns void

    • Logs a message to the appropriate output based on the current global logger context. Accepts either a plain string or a structured object with environment-specific log messages.

      • For string messages: logs directly if env is not production + debug.
      • For structured messages: logs based on matching env and logLevel.

      Parameters

      • genericMsg: string

      Returns void