当前位置: 首页>>代码示例>>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;未经允许,请勿转载。