本文整理匯總了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,