How to use the @seagull/libraries.mapLogToEvent function in @seagull/libraries

To help you get started, we’ve selected a few @seagull/libraries examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github seagull-js / seagull / packages / commands-logging / src / write_log.ts View on Github external
constructor(params: WriteLogRequest) {
    super()
    const events = mapLogToEvent(params.log, params.logLevel)
    this.params = {
      logEvents: events,
      logGroupName: `/${getAppName()}/data-log`,
      logStreamName: createStreamName(params.logStreamName),
    }
  }
github seagull-js / seagull / packages / commands-logging / src / add_log.ts View on Github external
constructor(params: AddLogRequest) {
    super()
    const events = mapLogToEvent(params.log, params.logLevel)
    this.params = {
      logEvents: events,
      logGroupName: `/${getAppName()}/data-log`,
      logStreamName: params.logStreamName,
      sequenceToken: params.sequenceToken,
    }
  }