本文整理汇总了TypeScript中@ssv/au-core.ILog类的典型用法代码示例。如果您正苦于以下问题:TypeScript ILog类的具体用法?TypeScript ILog怎么用?TypeScript ILog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ILog类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: buildRoutes
private buildRoutes(): void {
this.logger.debug("buildRoutes", "building routes...");
this.routeBuilder.map([
{
key: "home",
model: {
route: ""
}
},
{
key: "route-builder",
model: {
route: "route-builder"
}
},
{
key: "heroes",
model: {
route: "heroes"
}
},
{
key: "hero-detail",
parentKey: "heroes",
model: {
route: ":hero"
}
},
]);
}
示例2:
constructor(
loggerFactory: LoggerFactory,
private routeBuilder: RouteBuilder
) {
this.logger = loggerFactory.get(id);
this.logger.debug("ctor");
}
示例3:
constructor(
loggerFactory: LoggerFactory,
private appRouter: AppRouter
) {
this.logger = loggerFactory.get(id);
this.logger.debug("ctor", "init");
}
示例4: Error
.then(x => {
const result = _.find(x, { key: key });
this.logger.info("getByKey", "find complete.", { key: key, result: result });
if (!result) {
throw new Error(`Hero '${key}' not found`);
}
return result;
});
示例5:
configureRouter(config: RouterConfiguration) {
this.logger.debug("configureRouter");
config.map([
{
route: "",
title: "Heroes",
name: consts.routeStates.heroes,
moduleId: `${consts.basePath}/areas/hero/hero-list`,
nav: false,
settings: {}
},
{
route: ":hero",
title: "Hero",
name: consts.routeStates.hero,
moduleId: `${consts.basePath}/areas/hero/hero-detail`,
nav: false,
settings: {}
}
]);
}
示例6:
constructor(
loggerFactory: LoggerFactory
) {
this.logger = loggerFactory.get(id);
this.logger.debug("ctor", "init");
}