kibana/packages/kbn-tooling-log
Tiago Costa e41569b4a6
fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463)
* 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
2022-11-03 01:04:55 +00:00
..
src chore(NA): remove src folder requirement from packages (part 2) (#138476) 2022-08-30 15:57:35 +01:00
BUILD.bazel [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
index.ts chore(NA): remove src folder requirement from packages (part 2) (#138476) 2022-08-30 15:57:35 +01:00
jest.config.js break out parts of @kbn/dev-utils (#130509) 2022-04-19 12:24:58 -05:00
kibana.jsonc add kibana.jsonc files to existing packages (#138965) 2022-09-08 13:31:57 -07:00
package.json [auto] migrate existing plugin/package configs 2022-10-28 14:06:46 -05:00
README.mdx Initialize ops documentation section (#132262) 2022-05-17 15:22:38 -05:00
tsconfig.json fix(NA): wrongly spread stripInternal and rootDir configs across packages (#144463) 2022-11-03 01:04:55 +00:00

---
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" />