本文整理汇总了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}`)
}
示例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}`)
}
示例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.")
}
示例4:
xhr.addEventListener("error", () => {
logger.error(`Failed to fetch JSON from ${this.data_url} with code ${xhr.status}`)
})