mirror of
https://github.com/pion/webrtc.git
synced 2025-10-05 15:16:52 +08:00
17 lines
473 B
Markdown
17 lines
473 B
Markdown
# custom-logger
|
|
custom-logger is an example of how the Pion API provides an customizable
|
|
logging API. By default all Pion projects log to stdout, but we also allow
|
|
users to override this and process messages however they want.
|
|
|
|
## Instructions
|
|
### Download custom-logger
|
|
```
|
|
go install github.com/pion/webrtc/v4/examples/custom-logger@latest
|
|
```
|
|
|
|
### Run custom-logger
|
|
`custom-logger`
|
|
|
|
|
|
You should see messages from our customLogger, as two PeerConnections start a session
|