mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
* chore(NA): remove overrides for rootDir on packages * chore(NA): replace './target_types' with 'target_types' on packages * chore(NA): removes stripInternal false configs * chore(NA): remove unused strip internals |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.mdx | ||
tsconfig.json |
--- id: kibDevDocsToolingLog slug: /kibana-dev-docs/tooling-log title: "@kbn/tooling-log" description: Standard logger used by lots of tooling in the Kibana repository. tags: ['kibana', 'dev', 'contributor', 'operations', 'logging'] --- The Kibana ToolingLog is a basic logger used by just about all tooling in the Kibana respository that gives us a single indented logging interface to manage. In the Functional Test Runner, or in the vast majority of CLIs/scripts, a log instance is created for you and should be reused so that the level/output/indent level are synced across uses. To get the `ToolingLog` instance in the Functional Test Runner use `getService('log')`. To get the `ToolingLog` instance in CLIs, it's passed to the function at the root of the CLI: ```ts import { run } from '@kbn/dev-utils' run(async ({ flags, log }) => { log.info('hello') await ... }); ``` API Reference: <DocLink id="kibKbnToolingLogPluginApi" />