當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript au-core.ILog類代碼示例

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

		]);


	}
開發者ID:sketch7,項目名稱:ssv-au-dojo,代碼行數:33,代碼來源:app.bootstrap.ts

示例2:

	constructor(
		loggerFactory: LoggerFactory,
		private routeBuilder: RouteBuilder
	) {
		this.logger = loggerFactory.get(id);
		this.logger.debug("ctor");
	}
開發者ID:sketch7,項目名稱:ssv-au-dojo,代碼行數:7,代碼來源:app.bootstrap.ts

示例3:

	constructor(
		loggerFactory: LoggerFactory,
		private appRouter: AppRouter
	) {

		this.logger = loggerFactory.get(id);
		this.logger.debug("ctor", "init");
	}
開發者ID:sketch7,項目名稱:ssv-au-dojo,代碼行數:8,代碼來源:layout.ts

示例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;
			});
開發者ID:sketch7,項目名稱:ssv-au-dojo,代碼行數:9,代碼來源:hero.service.ts

示例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: {}
			}
		]);
	}
開發者ID:sketch7,項目名稱:ssv-au-dojo,代碼行數:21,代碼來源:hero-layout.ts

示例6:

	constructor(
		loggerFactory: LoggerFactory
	) {
		this.logger = loggerFactory.get(id);
		this.logger.debug("ctor", "init");
	}
開發者ID:sketch7,項目名稱:ssv-au-dojo,代碼行數:6,代碼來源:hero.service.ts


注:本文中的@ssv/au-core.ILog類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。