Expose logger from client

Summary: The `logger` was currently only available in a React context, and not directly exposed from the `client` API as well. This diff fixes it. The infrastructure including test stubs were present already, so the change is minimal.

Reviewed By: nikoant

Differential Revision: D28010120

fbshipit-source-id: cdd09ed236f5d92d07005d4e5a699360596281e4
This commit is contained in:
Michel Weststrate
2021-04-27 01:42:52 -07:00
committed by Facebook GitHub Bot
parent c89d18fd68
commit 844abca78c
2 changed files with 12 additions and 0 deletions

View File

@@ -332,6 +332,11 @@ The gatekeepers are cached in `localStorage`. Therefore, you might get the cache
</FbInternalOnly>
#### `logger`
Logger instance that logs information to the console, but also to the internal logging (in FB only builds) and which can be used to track performance.
See also [`useLogger`](#uselogger).
## DevicePluginClient
### Properties