Home / Function/ _basic_config() — anthropic-sdk-python Function Reference

_basic_config() — anthropic-sdk-python Function Reference

Architecture documentation for the _basic_config() function in _logs.py from the anthropic-sdk-python codebase.

Entity Profile

Dependency Diagram

graph TD
  079f7985_d5e6_3331_891b_707d18fd6720["_basic_config()"]
  9ee341c1_cb2e_bfd0_6bd3_0e4d237fbb62["_logs.py"]
  079f7985_d5e6_3331_891b_707d18fd6720 -->|defined in| 9ee341c1_cb2e_bfd0_6bd3_0e4d237fbb62
  0f3f2a0b_b8c5_1f24_75d4_8ef73382e9ca["setup_logging()"]
  0f3f2a0b_b8c5_1f24_75d4_8ef73382e9ca -->|calls| 079f7985_d5e6_3331_891b_707d18fd6720
  style 079f7985_d5e6_3331_891b_707d18fd6720 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/anthropic/_utils/_logs.py lines 8–13

def _basic_config() -> None:
    # e.g. [2023-10-05 14:12:26 - anthropic._base_client:818 - DEBUG] HTTP Request: POST http://127.0.0.1:4010/foo/bar "200 OK"
    logging.basicConfig(
        format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s",
        datefmt="%Y-%m-%d %H:%M:%S",
    )

Subdomains

Called By

Frequently Asked Questions

What does _basic_config() do?
_basic_config() is a function in the anthropic-sdk-python codebase, defined in src/anthropic/_utils/_logs.py.
Where is _basic_config() defined?
_basic_config() is defined in src/anthropic/_utils/_logs.py at line 8.
What calls _basic_config()?
_basic_config() is called by 1 function(s): setup_logging.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free