arize 8.0.0a11__py3-none-any.whl → 8.0.0a12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
arize/logging.py CHANGED
@@ -211,8 +211,6 @@ def get_truncation_warning_message(instance, limit) -> str:
211
211
 
212
212
  def configure_logging(
213
213
  level: int = logging.INFO,
214
- *,
215
- to_stdout: bool = True,
216
214
  structured: bool = False,
217
215
  ) -> None:
218
216
  """
@@ -230,9 +228,6 @@ def configure_logging(
230
228
  for h in root.handlers[:]:
231
229
  root.removeHandler(h)
232
230
 
233
- if not to_stdout:
234
- return
235
-
236
231
  handler = logging.StreamHandler(sys.stdout)
237
232
  handler.setLevel(level)
238
233
 
arize/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "8.0.0a11"
1
+ __version__ = "8.0.0a12"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arize
3
- Version: 8.0.0a11
3
+ Version: 8.0.0a12
4
4
  Summary: A helper library to interact with Arize AI APIs
5
5
  Project-URL: Homepage, https://arize.com
6
6
  Project-URL: Documentation, https://docs.arize.com/arize
@@ -92,6 +92,9 @@ Description-Content-Type: text/markdown
92
92
  - [Log a batch of ML Data for a Object Detection use-case](#log-a-batch-of-ml-data-for-a-object-detection-use-case)
93
93
  - [Exporting ML Data](#exporting-ml-data)
94
94
  - [Generate embeddings for your data](#generate-embeddings-for-your-data)
95
+ - [Configure Logging](#configure-logging)
96
+ - [In Code](#in-code)
97
+ - [Via Environment Variables](#via-environment-variables)
95
98
  - [Community](#community)
96
99
 
97
100
  # Overview
@@ -365,6 +368,37 @@ generator = EmbeddingGenerator.from_use_case(
365
368
  df["text_vector"] = generator.generate_embeddings(text_col=df["text"])
366
369
  ```
367
370
 
371
+ # Configure Logging
372
+
373
+ ## In Code
374
+
375
+ You can use `configure_logging` to set up the logging behavior of the Arize package to your needs.
376
+
377
+ ```python
378
+ from arize.logging import configure_logging
379
+
380
+ configure_logging(
381
+ level=..., # Defaults to logging.INFO
382
+ structured=..., # if True, emit JSON logs. Defaults to False
383
+ )
384
+ ```
385
+
386
+ ## Via Environment Variables
387
+
388
+ Configure the same options as the section above, via:
389
+
390
+ ```python
391
+ import os
392
+
393
+ # You can disable logging altogether
394
+ os.environ["ARIZE_LOG_ENABLE"] = "true"
395
+ # Set up the logging level
396
+ os.environ["ARIZE_LOG_LEVEL"] = "debug"
397
+ # Whether or not you want structured JSON logs
398
+ os.environ["ARIZE_LOG_STRUCTURED"] = "false"
399
+ ```
400
+
401
+ The default behavior of Arize's logs is: enabled, `INFO` level, and not structured.
368
402
 
369
403
  # Community
370
404
 
@@ -2,9 +2,9 @@ arize/__init__.py,sha256=-4bbbZwcjGS9OfAunsB-lmKRCzccPdFvZmvJQJEky3E,534
2
2
  arize/_lazy.py,sha256=MVep6D93sJWvArg4pgm4CVNGc6tu-XRK_Z7EDMuc76I,2358
3
3
  arize/client.py,sha256=kDdOWC1rwYgPPExO3wT3-KU3qpMwQ0ogrAdjvf7Ls3M,5860
4
4
  arize/config.py,sha256=iynVEZhrOPdTNJTQ_KQmwKOPiwL0LfEP8AUIDYW86Xw,5801
5
- arize/logging.py,sha256=2vwdta2-kR78GeBFGK2vpk51rQ2d06HoKzuARI9qFQk,7317
5
+ arize/logging.py,sha256=OahBaJRG-z5DPqWrj2_rbe2n0r4fMGOrXpxN_4M_i_w,7244
6
6
  arize/types.py,sha256=z1yg5-brmTD4kVHDmmTVkYke53JpusXXeOOpdQw7rYg,69508
7
- arize/version.py,sha256=YFPzyK5jfODAbvUqUQHeQ5WVmHl6zTh9HSFOA75S0rc,25
7
+ arize/version.py,sha256=pIYyrrKVIV-mJxlHLm5Y4gHaueX3_4oWwSPkGBkbmdI,25
8
8
  arize/_exporter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  arize/_exporter/client.py,sha256=eAxJX1sUfdpLrtaQ0ynMTd5jI37JOp9fbl3NWp4WFEA,15216
10
10
  arize/_exporter/validation.py,sha256=6ROu5p7uaolxQ93lO_Eiwv9NVw_uyi3E5T--C5Klo5Q,1021
@@ -120,7 +120,7 @@ arize/utils/dataframe.py,sha256=I0FloPgNiqlKga32tMOvTE70598QA8Hhrgf-6zjYMAM,1120
120
120
  arize/utils/proto.py,sha256=9vLo53INYjdF78ffjm3E48jFwK6LbPD2FfKei7VaDy8,35477
121
121
  arize/utils/online_tasks/__init__.py,sha256=nDuTLUTYnZaWgyJoYR1P7O8ZKA-Nba7X6tJ9OislbWM,144
122
122
  arize/utils/online_tasks/dataframe_preprocessor.py,sha256=YyeeeFu_FwCYImbYvBZvQIH_5TK2lHru8KSfqV893ps,8884
123
- arize-8.0.0a11.dist-info/METADATA,sha256=8VQP8JDh48Lbj07BqrntHaJjRdlalM7a5Zq3pv5s7E0,13842
124
- arize-8.0.0a11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
125
- arize-8.0.0a11.dist-info/licenses/LICENSE.md,sha256=8vLN8Gms62NCBorxIv9MUvuK7myueb6_-dhXHPmm4H0,1479
126
- arize-8.0.0a11.dist-info/RECORD,,
123
+ arize-8.0.0a12.dist-info/METADATA,sha256=-1PeD1-Kf8yRY1Nw9PyuRDaOa88Rkg98Jd6l5ruq7Hk,14725
124
+ arize-8.0.0a12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
125
+ arize-8.0.0a12.dist-info/licenses/LICENSE.md,sha256=8vLN8Gms62NCBorxIv9MUvuK7myueb6_-dhXHPmm4H0,1479
126
+ arize-8.0.0a12.dist-info/RECORD,,