Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enhance basic logger destination support. #650

Merged
merged 6 commits into from
Nov 1, 2024

Conversation

kinyoklion
Copy link
Member

@kinyoklion kinyoklion commented Oct 31, 2024

This adds support to the common basic logger that makes it more suitable for client SDKs.

Instead of a single destination for all logs you can now control the destination per log level. This allow you to use all the default formatting, log level handling, and log tagging while also getting logs that are nice for use in a browser.

Copy link
Contributor

@launchdarkly/js-sdk-common size report
This is the brotli compressed size of the ESM build.
Size: 18640 bytes
Size limit: 21000

Copy link
Contributor

github-actions bot commented Oct 31, 2024

@launchdarkly/js-client-sdk size report
This is the brotli compressed size of the ESM build.
Size: 19412 bytes
Size limit: 21000

@kinyoklion kinyoklion changed the title feat: Add better common logger support. feat: Enhance basic logger destination support. Oct 31, 2024
Copy link
Contributor

@launchdarkly/js-client-sdk-common size report
This is the brotli compressed size of the ESM build.
Size: 15292 bytes
Size limit: 20000

@kinyoklion kinyoklion marked this pull request as ready for review October 31, 2024 23:20
@kinyoklion kinyoklion requested a review from a team as a code owner October 31, 2024 23:20
@kinyoklion kinyoklion merged commit 21670c4 into main Nov 1, 2024
21 checks passed
@kinyoklion kinyoklion deleted the rlamb/sdk-759/better-basic-logger branch November 1, 2024 15:47
@github-actions github-actions bot mentioned this pull request Nov 1, 2024
kinyoklion pushed a commit that referenced this pull request Nov 5, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>akamai-edgeworker-sdk-common: 1.3.1</summary>

##
[1.3.1](akamai-edgeworker-sdk-common-v1.3.0...akamai-edgeworker-sdk-common-v1.3.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-server-sdk-common bumped from ^2.9.0 to ^2.9.1
</details>

<details><summary>akamai-server-base-sdk: 2.1.19</summary>

##
[2.1.19](akamai-server-base-sdk-v2.1.18...akamai-server-base-sdk-v2.1.19)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.3.0 to
^1.3.1
    * @launchdarkly/js-server-sdk-common bumped from ^2.9.0 to ^2.9.1
</details>

<details><summary>akamai-server-edgekv-sdk: 1.2.1</summary>

##
[1.2.1](akamai-server-edgekv-sdk-v1.2.0...akamai-server-edgekv-sdk-v1.2.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
* @launchdarkly/akamai-edgeworker-sdk-common bumped from ^1.3.0 to
^1.3.1
    * @launchdarkly/js-server-sdk-common bumped from ^2.9.0 to ^2.9.1
</details>

<details><summary>cloudflare-server-sdk: 2.6.1</summary>

##
[2.6.1](cloudflare-server-sdk-v2.6.0...cloudflare-server-sdk-v2.6.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @launchdarkly/js-server-sdk-common-edge bumped from 2.5.0 to 2.5.1
</details>

<details><summary>js-client-sdk: 0.3.0</summary>

##
[0.3.0](js-client-sdk-v0.2.0...js-client-sdk-v0.3.0)
(2024-11-04)


### Features

* Enhance basic logger destination support.
([#650](#650))
([21670c4](21670c4))


### Bug Fixes

* Export LDInspection interface.
([#653](#653))
([7f58b2a](7f58b2a))
* Export required types from compat.
([#645](#645))
([008dcf0](008dcf0))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-client-sdk-common bumped from 1.11.0 to 1.12.0
</details>

<details><summary>js-client-sdk-common: 1.12.0</summary>

##
[1.12.0](js-client-sdk-common-v1.11.0...js-client-sdk-common-v1.12.0)
(2024-11-04)


### Features

* Enhance basic logger destination support.
([#650](#650))
([21670c4](21670c4))


### Bug Fixes

* Export LDInspection interface.
([#653](#653))
([7f58b2a](7f58b2a))


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-sdk-common bumped from 2.11.0 to 2.12.0
</details>

<details><summary>js-sdk-common: 2.12.0</summary>

##
[2.12.0](js-sdk-common-v2.11.0...js-sdk-common-v2.12.0)
(2024-11-04)


### Features

* Enhance basic logger destination support.
([#650](#650))
([21670c4](21670c4))
</details>

<details><summary>js-server-sdk-common: 2.9.1</summary>

##
[2.9.1](js-server-sdk-common-v2.9.0...js-server-sdk-common-v2.9.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-sdk-common bumped from 2.11.0 to 2.12.0
</details>

<details><summary>js-server-sdk-common-edge: 2.5.1</summary>

##
[2.5.1](js-server-sdk-common-edge-v2.5.0...js-server-sdk-common-edge-v2.5.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-server-sdk-common bumped from 2.9.0 to 2.9.1
</details>

<details><summary>node-server-sdk: 9.7.1</summary>

##
[9.7.1](node-server-sdk-v9.7.0...node-server-sdk-v9.7.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-server-sdk-common bumped from 2.9.0 to 2.9.1
</details>

<details><summary>node-server-sdk-dynamodb: 6.2.1</summary>

##
[6.2.1](node-server-sdk-dynamodb-v6.2.0...node-server-sdk-dynamodb-v6.2.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @launchdarkly/node-server-sdk bumped from 9.7.0 to 9.7.1
  * peerDependencies
    * @launchdarkly/node-server-sdk bumped from >=9.4.3 to >=9.7.1
</details>

<details><summary>node-server-sdk-otel: 1.1.1</summary>

##
[1.1.1](node-server-sdk-otel-v1.1.0...node-server-sdk-otel-v1.1.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @launchdarkly/node-server-sdk bumped from 9.7.0 to 9.7.1
  * peerDependencies
    * @launchdarkly/node-server-sdk bumped from >=9.4.3 to >=9.7.1
</details>

<details><summary>node-server-sdk-redis: 4.2.1</summary>

##
[4.2.1](node-server-sdk-redis-v4.2.0...node-server-sdk-redis-v4.2.1)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
    * @launchdarkly/node-server-sdk bumped from 9.7.0 to 9.7.1
  * peerDependencies
    * @launchdarkly/node-server-sdk bumped from >=9.4.3 to >=9.7.1
</details>

<details><summary>react-native-client-sdk: 10.9.2</summary>

##
[10.9.2](react-native-client-sdk-v10.9.1...react-native-client-sdk-v10.9.2)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-client-sdk-common bumped from 1.11.0 to 1.12.0
</details>

<details><summary>vercel-server-sdk: 1.3.20</summary>

##
[1.3.20](vercel-server-sdk-v1.3.19...vercel-server-sdk-v1.3.20)
(2024-11-04)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @launchdarkly/js-server-sdk-common-edge bumped from 2.5.0 to 2.5.1
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants