MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / _basic_config

Function _basic_config

src/opencode_ai/_utils/_logs.py:8–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

setup_loggingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected