本文整理汇总了TypeScript中angular2-logger/core.Logger.log方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Logger.log方法的具体用法?TypeScript Logger.log怎么用?TypeScript Logger.log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类angular2-logger/core.Logger
的用法示例。
在下文中一共展示了Logger.log方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: logMsgs
logMsgs(){
this._logger.error('This is a priority level 1 error message...');
this._logger.warn('This is a priority level 2 warning message...');
this._logger.info('This is a priority level 3 info message...');
this._logger.debug('This is a priority level 4 debug message...');
this._logger.log('This is a priority level 5 log message...');
}
示例2: ngOnInit
ngOnInit() {
this.data = {'users': 10, 'hosts': 10, 'online': 19, 'hostonline': 9};
this._appService.getMyinfo();
this._logger.log('dashboard.ts:Dashboard,ngOnInit');
// this._appService.getMyinfoFromServer().subscribe(response => {
// this.user = response;
// this._logger.log('dashboard.ts:Dashboard,ngOnInit')
// this._logger.debug(response)
// this._appService.setMyinfo(this.user);
// });
}
示例3: ngOnInit
ngOnInit() {
this._logger.log('dashboard.ts:Dashboard,ngOnInit');
this._appService.getMyinfo();
this.data = {'users': 10, 'hosts': 10, 'online': 19, 'hostonline': 9};
// this._appService.getMyinfoFromServer().subscribe(response => {
// this.user = response;
// this._logger.log('dashboard.ts:Dashboard,ngOnInit')
// this._logger.debug(response)
// this._appService.setMyinfo(this.user);
// });
// this.top10Chart = echarts.init(document.getElementById('top10'));
// var option = {
// title: {
// text: '月数据总览',
// subtext: '一个月内历史汇总',
// x: 'center'
// },
// tooltip: {
// trigger: 'axis'
// },
// backgroundColor: '#fff',
// legend: {
// data: ['登陆次数', '活跃用户', '活跃资产'],
// y: 'bottom'
// },
// toolbox: {
// show: false,
// feature: {
//
//
// magicType: {show: true, type: ['line', 'bar']}
// }
// },
// calculable: true,
// xAxis: [
// {
// type: 'category',
// boundaryGap: false,
// data: ['03-08', '03-09', '03-10', '03-11', '03-12', '03-13', '03-14', '03-15', '03-16', '03-17', '03-18', '03-19', '03-20', '03-21', '03-22', '03-23', '03-24', '03-25', '03-26', '03-27', '03-28', '03-29', '03-30', '03-31', '04-01', '04-02', '04-03', '04-04', '04-05', '04-06']
// }
// ],
// yAxis: [
// {
// type: 'value'
// }
// ],
// series: [
// {
// name: '登陆次数',
// type: 'line',
// smooth: true,
// itemStyle: {normal: {areaStyle: {type: 'default'}}},
// data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 2, 13, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]
// },
// {
// name: '活跃用户',
// type: 'line',
// smooth: true,
// itemStyle: {normal: {areaStyle: {type: 'default'}}},
// data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]
// },
// {
// name: '活跃资产',
// type: 'line',
// smooth: true,
// itemStyle: {normal: {areaStyle: {type: 'default'}}},
// data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0]
// }
//
// ]
// };
// this.top10Chart.setOption(option, true);
// while(jQuery('#top10').width()==0)
// this.top10Chart.setOption(option,true);
}
示例4: constructor
constructor(private _logger: Logger
) {
this._logger.log('CasseTete Component Mounted Successfully');
}
示例5: ngOnInit
ngOnInit() {
this._logger.log('index.tx:AppComponent,ngOnInit');
this._appService.checklogin(this._router.lastNavigationAttempt);
this._appService.getMyinfo();
}
示例6:
this._appService.getGrouplist().subscribe(response => {
this.groups = response;
this._logger.log('grouplist.ts:Grouplist,constructor')
this._logger.debug(response)
});