当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript logger.error方法代码示例

本文整理汇总了TypeScript中core/logging.logger.error方法的典型用法代码示例。如果您正苦于以下问题:TypeScript logger.error方法的具体用法?TypeScript logger.error怎么用?TypeScript logger.error使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在core/logging.logger的用法示例。


在下文中一共展示了logger.error方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: initialize

  initialize(): void {
    super.initialize()

    // Validate data_sources match
    const data_source_validation = this._check_data_sources_on_renderers()
    if (!data_source_validation)
      logger.error("Non matching data sources on legend item renderers")

    // Validate label in data_source
    const field_validation = this._check_field_label_on_data_source()
    if (!field_validation)
      logger.error(`Bad column name on label: ${this.label}`)
  }
开发者ID:gully,项目名称:bokeh,代码行数:13,代码来源:legend_item.ts

示例2: initialize

  initialize(): void {
    super.initialize()
    this.legend = null
    this.connect(this.change,
      () => { if (this.legend != null) this.legend.item_change.emit() })

    // Validate data_sources match
    const data_source_validation = this._check_data_sources_on_renderers()
    if (!data_source_validation)
      logger.error("Non matching data sources on legend item renderers")

    // Validate label in data_source
    const field_validation = this._check_field_label_on_data_source()
    if (!field_validation)
      logger.error(`Bad column name on label: ${this.label}`)
  }
开发者ID:digitalsatori,项目名称:Bokeh,代码行数:16,代码来源:legend_item.ts

示例3: initialize

 initialize(): void {
   super.initialize()
   if (!this.api_key)
     logger.error("api_key is required. See https://developers.google.com/maps/documentation/javascript/get-api-key for more information on how to obtain your own.")
 }
开发者ID:FourtekIT-incubator,项目名称:bokeh,代码行数:5,代码来源:gmap_plot.ts

示例4:

 xhr.addEventListener("error", () => {
   logger.error(`Failed to fetch JSON from ${this.data_url} with code ${xhr.status}`)
 })
开发者ID:FourtekIT-incubator,项目名称:bokeh,代码行数:3,代码来源:ajax_data_source.ts


注:本文中的core/logging.logger.error方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。