-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix baml_log_json logs for py, ruby, and TS (#1153)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Adds JSON logging support for Python, Ruby, and TypeScript language clients using `tracing-subscriber`, controlled by the `BAML_LOG_JSON` environment variable. > > - **Behavior**: > - Adds JSON logging support for Python, Ruby, and TypeScript language clients by using `tracing-subscriber`. > - Checks `BAML_LOG_JSON` environment variable to determine if JSON logging is enabled. > - If JSON logging is enabled, configures `tracing-subscriber` with JSON formatting and environment filter. > - If JSON logging is not enabled, falls back to `env_logger` for regular logging. > - **Dependencies**: > - Adds `tracing-subscriber` to `Cargo.toml` for Python, Ruby, and TypeScript language clients. > - **Files**: > - Updates `lib.rs` in `language_client_python`, `language_client_ruby/ext/ruby_ffi`, and `language_client_typescript` to implement the logging changes. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for 86ad707. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
Showing
7 changed files
with
94 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters