Skip to content

Commit e682a57

Browse files
committed
docs(logging): state that osw writes its records to stderr
1 parent 329bff4 commit e682a57

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎docs/get-started.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ osw.set_log_level("DEBUG") # see more
7777
osw.disable_logging() # detach the handler osw attached
7878
```
7979

80+
The records go to `stderr`, which leaves `stdout` free for your program's own
81+
output. That matters for anything speaking a protocol over `stdout`, such as an
82+
MCP stdio server. Pass `osw.enable_logging(stream=...)` to send them elsewhere.
83+
8084
Set `OSW_LOG_LEVEL` to a level name, a level number, or `OFF` to choose the
8185
level before the package is imported. `OFF` silences osw everywhere, including
8286
in your own handlers.

0 commit comments

Comments
 (0)