本文整理汇总了TypeScript中kibana/server.Logger.debug方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Logger.debug方法的具体用法?TypeScript Logger.debug怎么用?TypeScript Logger.debug使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kibana/server.Logger
的用法示例。
在下文中一共展示了Logger.debug方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: start
public start(core: CoreStart, deps: Record<PluginName, unknown>) {
this.log.debug(
`Starting up TestBed testbed with core contract [${Object.keys(
core
)}] and deps [${Object.keys(deps)}]`
);
return {
getStartContext() {
return core;
},
};
}
示例2: setup
public setup(core: CoreSetup, deps: Record<PluginName, unknown>) {
this.log.debug(
`Setting up TestBed with core contract [${Object.keys(core)}] and deps [${Object.keys(deps)}]`
);
return {
data$: this.initializerContext.config.create<ConfigType>().pipe(
map(configValue => {
this.log.debug(`I've got value from my config: ${configValue.secret}`);
return `Some exposed data derived from config: ${configValue.secret}`;
})
),
pingElasticsearch$: core.elasticsearch.adminClient$.pipe(
mergeMap(client => client.callAsInternalUser('ping'))
),
};
}
示例3: stop
public stop() {
this.log.debug(`Stopping TestBed`);
}
示例4: map
map(config => {
this.log.debug(`I've got value from my config: ${config.secret}`);
return `Some exposed data derived from config: ${config.secret}`;
})