本文整理汇总了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,
示例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,