當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript logger.LoggerService類代碼示例

本文整理匯總了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];
    });
  }
開發者ID:sinedied,項目名稱:hadra-trance-festival,代碼行數:25,代碼來源:artist.controller.ts

示例2: constructor

  constructor(logger: LoggerService,
              config: IApplicationConfig) {

    this.logger = logger.getLogger('about');
    this.version = config.version;

    this.logger.log('init');
  }
開發者ID:angular-starter-kit,項目名稱:generator-angular-pro,代碼行數:8,代碼來源:about.controller.ts

示例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');
  }
開發者ID:sinedied,項目名稱:festival-editor,代碼行數:13,代碼來源:shell.controller.ts

示例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];
    });
  }
開發者ID:sinedied,項目名稱:hadra-trance-festival,代碼行數:17,代碼來源:info.controller.ts

示例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));
  }
開發者ID:sinedied,項目名稱:hadra-trance-festival,代碼行數:19,代碼來源:notification.service.ts

示例6: constructor

  constructor(private $state: ng.ui.IStateService,
              logger: LoggerService) {

    this.logger = logger.getLogger('shell');
    this.logger.log('init');
  }
開發者ID:sinedied,項目名稱:hadra-trance-festival,代碼行數:6,代碼來源:shell.controller.ts

示例7: constructor

 constructor(logger: LoggerService) {
   this.logger = logger.getLogger('infosController');
   this.logger.log('init');
 }
開發者ID:sinedied,項目名稱:hadra-trance-festival,代碼行數:4,代碼來源:infos.controller.ts

示例8: constructor

 constructor(logger: LoggerService) {
   this.logger = logger.getLogger('contextService');
 }
開發者ID:angular-starter-kit,項目名稱:generator-angular-pro,代碼行數:3,代碼來源:context.service.ts

示例9: constructor

  constructor(private $ionicScrollDelegate: ionic.scroll.IonicScrollDelegate,
              private $timeout: ng.ITimeoutService,
              logger: LoggerService) {

    this.logger = logger.getLogger('scrollService');
  }
開發者ID:sinedied,項目名稱:hadra-trance-festival,代碼行數:6,代碼來源:scroll.service.ts


注:本文中的helpers/logger/logger.LoggerService類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。