本文整理汇总了TypeScript中helpers/logger/logger.LoggerService类的典型用法代码示例。如果您正苦于以下问题:TypeScript LoggerService类的具体用法?TypeScript LoggerService怎么用?TypeScript LoggerService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了LoggerService类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor($scope: ng.IScope,
$stateParams: angular.ui.IStateParamsService,
private $cordovaInAppBrowser: any,
private moment: moment.MomentStatic,
private gettextCatalog: angular.gettext.gettextCatalog,
logger: LoggerService,
private festivalService: FestivalService,
private playerService: PlayerService,
private favoritesService: FavoritesService,
private toastService: ToastService) {
this.logger = logger.getLogger('artist');
this.logger.log('init');
this.noBio = gettextCatalog.getString('No bio');
this.favorites = this.favoritesService.favorites;
// Init each time, because of view cache
$scope.$on('$ionicView.beforeEnter', () => {
let artistId = $stateParams['artistId'];
this.logger.log('artistId', artistId);
this.artist = this.festivalService.festival.artistById[artistId];
});
}
示例2: constructor
constructor(logger: LoggerService,
config: IApplicationConfig) {
this.logger = logger.getLogger('about');
this.version = config.version;
this.logger.log('init');
}
示例3: constructor
constructor(private $state: ng.ui.IStateService,
$locale: ng.ILocaleService,
private _: _.LoDashStatic,
config: IApplicationConfig,
logger: LoggerService) {
this.currentLocale = $locale;
this.logger = logger.getLogger('shell');
this.languages = config.supportedLanguages;
this.menuHidden = true;
this.logger.log('init');
}
示例4: constructor
constructor($scope: ng.IScope,
$stateParams: angular.ui.IStateParamsService,
private $cordovaInAppBrowser: any,
festivalService: FestivalService,
logger: LoggerService) {
this.logger = logger.getLogger('infoController');
this.logger.log('init');
// Init each time, because of view cache
$scope.$on('$ionicView.beforeEnter', () => {
let infoId = $stateParams['infoId'];
this.logger.log('infoId', infoId);
this.info = festivalService.festival.infos[infoId];
});
}
示例5: constructor
constructor(private $window: ng.IWindowService,
private $q: ng.IQService,
private $rootScope: ng.IRootScopeService,
private $cordovaLocalNotification: any,
private gettextCatalog: angular.gettext.gettextCatalog,
private moment: moment.MomentStatic,
logger: LoggerService,
private config: IApplicationConfig,
private toastService: ToastService,
private festivalService: FestivalService,
private favoritesService: FavoritesService) {
this.logger = logger.getLogger('notificationService');
this.id = parseInt($window.localStorage.getItem(NOTIFICATION_KEY) || '0', 10);
this.$rootScope.$on(FavoritesService.FAVORITES_UPDATED_EVENT, this.updateNotifications.bind(this));
this.$rootScope.$on(FestivalService.FESTIVAL_UPDATED_EVENT, this.updateNotifications.bind(this));
this.$rootScope.$on('$cordovaLocalNotification:trigger', this.onTrigger.bind(this));
}
示例6: constructor
constructor(private $state: ng.ui.IStateService,
logger: LoggerService) {
this.logger = logger.getLogger('shell');
this.logger.log('init');
}
示例7: constructor
constructor(logger: LoggerService) {
this.logger = logger.getLogger('infosController');
this.logger.log('init');
}
示例8: constructor
constructor(logger: LoggerService) {
this.logger = logger.getLogger('contextService');
}
示例9: constructor
constructor(private $ionicScrollDelegate: ionic.scroll.IonicScrollDelegate,
private $timeout: ng.ITimeoutService,
logger: LoggerService) {
this.logger = logger.getLogger('scrollService');
}