• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript logger.LoggerService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript time_formatter.formatInDate函数代码示例发布时间:2022-05-25
下一篇:
TypeScript logger.ILogger类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap