Configure the logger
Bootstrap the global logger from an application config — root level, sinks, per-logger overrides, resource attributes. Integration with dagstack/config.
Capturing logs in tests
Use InMemorySink plus scoped overrides to assert on emitted records — single-test isolation, attribute matchers, severity counts.
Implement a custom sink
How to write your own Sink — non-blocking emit, severity filtering, lifecycle hooks. Patterns for batching and remote delivery.