async log()

in src/tools/WebhookLogger.ts [39:49]


  async log(message: string, tag?: string) {
    if (this.logLevel !== IOTC_LOGGING.DISABLED) {
      await fetch(this.url, {
        method: 'POST',
        body: `INFO${tag ? ` - ${tag.toUpperCase()}` : ''}: ${message}`,
        headers: {
          'Content-Type': 'text/plain',
        },
      });
    }
  }