本文整理汇总了TypeScript中aurelia-logging.Logger类的典型用法代码示例。如果您正苦于以下问题:TypeScript Logger类的具体用法?TypeScript Logger怎么用?TypeScript Logger使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Logger类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: error
error(message: string, title: string = undefined, overrides: ToastrOptions = undefined) {
if (!overrides) {
overrides = {
timeOut: 0,
extendedTimeOut: 0,
closeButton: true
};
}
this._toastr('error', message, title, overrides);
this.logger.error(message);
}
示例2:
return this.githubClient.find('users').then(users => {
this.logger.info('Successfully retrieved Users');
return users;
});
示例3: success
success(message: string, title: string = undefined, overrides: ToastrOptions = undefined) {
this._toastr('success', message, title, overrides);
this.logger.info(message);
}
示例4: warning
warning(message: string, title: string = undefined, overrides: ToastrOptions = undefined) {
this._toastr('warning', message, title, overrides);
this.logger.warn(message);
}