当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Tracer.enableLiveLogging方法代码示例

本文整理汇总了TypeScript中@aurelia/kernel.Tracer.enableLiveLogging方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Tracer.enableLiveLogging方法的具体用法?TypeScript Tracer.enableLiveLogging怎么用?TypeScript Tracer.enableLiveLogging使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在@aurelia/kernel.Tracer的用法示例。


在下文中一共展示了Tracer.enableLiveLogging方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: enableTracing

import { App } from './app';

import { Tracer } from '@aurelia/kernel';
import { About } from './components/about';
import { Board } from './components/board';
import { Cancel } from './components/cancel';
import { Contact } from './components/contact';
import { Contacts } from './components/contacts';
import { Delayed } from './components/delayed';
import { Game } from './components/game';
import { Inventory } from './components/inventory';
import { Lobby } from './components/lobby';
import { enableTracing, TraceWriter } from './tracing';

enableTracing();
Tracer.enableLiveLogging(TraceWriter);

const container = HTMLJitConfiguration.createContainer();
container.register(
  ViewportCustomElement as any,
  NavCustomElement as any,
  App as any,

  Game as any,
  Lobby as any,
  About as any,
  Contacts as any,
  Contact as any,
  Board as any,
  Inventory as any,
  Delayed as any,
开发者ID:aurelia,项目名称:aurelia,代码行数:31,代码来源:startup.ts

示例2:

  ViewportCustomElement,
  Router
} from '@aurelia/router';
import { App } from './app';
import { DI, PLATFORM, Tracer } from '@aurelia/kernel';

window['faker'] = faker;

DebugConfiguration.register();
TraceConfiguration.register();
Tracer.enabled = true;
Tracer.enableLiveLogging({
  di: false,
  jit: false,
  rendering: false,
  lifecycle: true,
  binding: true,
  attaching: true,
  mounting: true,
  observation: true
});

// manually compose the app from individual registrations, leaving out some stuff that we're not going
// to use (yet)
const container = DI.createContainer().register(
  // runtime components
  IObserverLocatorRegistration,
  ILifecycleRegistration,
  IRendererRegistration,

  // runtime resources
  IfRegistration,
开发者ID:aurelia,项目名称:aurelia,代码行数:32,代码来源:startup.ts


注:本文中的@aurelia/kernel.Tracer.enableLiveLogging方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。