Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ServerBuilder to configure server startup, use custom logger #95

Merged
merged 3 commits into from
Apr 12, 2024

Conversation

sgoll
Copy link
Contributor

@sgoll sgoll commented Apr 10, 2024

Description

This adds ServerBuilder to configure server startup, similar to ClientBuilder. This PR also brings Client and Server closer together by mirroring the different ways to construct instances (with builder or with implied defaults).

It also adds the same logger as used by Client to the default Server configuration, to forward log messages through the log crate instead of directly writing to stdout and stderr.

@sgoll sgoll requested a review from uklotzde April 10, 2024 17:43
Cargo.toml Show resolved Hide resolved
src/ua/server.rs Show resolved Hide resolved
@sgoll sgoll merged commit c64f8c3 into main Apr 12, 2024
13 checks passed
@sgoll sgoll deleted the server-builder branch April 12, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants