How to use the @seagull/libraries.getAppName 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 / read_log.ts View on Github external
constructor(params: GetLogsRequest) {
    super()
    const groupName = {
      logGroupName: params.logGroupName || `/${getAppName()}/data-log`,
    }
    this.params = { ...params, ...groupName }
  }
github seagull-js / seagull / packages / commands-logging / src / write_logs.ts View on Github external
constructor(params: WriteLogsRequest) {
    super()
    const events = mapLogToEvents(params.logs, 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,
    }
  }
github seagull-js / seagull / packages / commands-logging / src / create_stream.ts View on Github external
constructor(logStreamName: string) {
    super()
    this.logGroupName = `/${getAppName()}/data-log`
    this.logStreamName = createStreamName(logStreamName)
  }