-
Notifications
You must be signed in to change notification settings - Fork 181
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 storage capability for client logs and allow for use with LogSender and LogReceiver #3077
base: main
Are you sure you want to change the base?
Conversation
/build |
/build |
Refactored to make it more configurable |
/build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly good, added some questions
FileStreamer.register_stream_processing( | ||
fl_ctx, channel=channel, topic=LOG_STREAM_EVENT_TYPE, stream_done_cb=self.process_log | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also say this LogSender and LogReceiver is always using the same channel but for different types of logs they send/receive they use different "topic"?
Now is the same "topic" but different "channel" I guess we just need to explain what we prefer in the docstring
LOG_DATA = "log_data" | ||
|
||
|
||
class LogSender(Widget): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this component only works in client, what happen if users put this in server side?
Do we need some checking against that?
Add storage capability for client logs and allow for use with LogSender and LogReceiver.
Description
To use this, add this component to the resources on the client site:
{
"id": "log_sender",
"path": "nvflare.app_common.widgets.log_streaming.LogSender",
"args": {}
},
and with this configured on the server:
{
"id": "log_receiver",
"path": "nvflare.app_common.widgets.log_streaming.LogReceiver",
"args": {}
},
Types of changes
./runtest.sh
.