You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We need a way to make sufficient info available to the app such that users have better visibility into what is going on while new sessions are being created
Describe the solution you'd like
Have Sshnp provide a way for programs to subscribe to a Stream of Strings, and have that stream yield Strings for all relevant events.
Describe alternatives you've considered
Bare minimum here could be to provide a way of listening to the logger; however the target audiences are slightly different. Having said that, providing a way to get programmatic access to a stream of messages from the logger may also be useful (e.g. if we were to provide users a way of creating support tickets based on something weird happening, then the logger info would be useful to us for more detailed diagnosis)
Additional context
No response
The text was updated successfully, but these errors were encountered:
@CurtlyCritchlow I'll get to this tomorrow; idea is (1) Sshnp will provide a method Stream<String> listenToProgress() which will emit Strings which are human readable; and (2) Sshnp will provide a methodStream<String> listenToLoggers() which will emit everything that is written to an AtSignLogger at or above the root log level
@CurtlyCritchlow these methods have been added to the Sshnp interface
/// Yields a string every time something interesting happens with regards to /// progress towards establishing the ssh connection.Stream<String>?get progressStream;
/// Yields every log message that is written to [stderr]Stream<String>?get logStream;
FYI I added this for the CLI; what the GUI does will be quite different of course
// A listen progress listener for the CLI// Will only log if verbose is false, since if verbose is true// there will already be a boatload of log messageslogProgress(String s) {
if (!(params?.verbose ??true)) {
stderr.writeln('${DateTime.now()} : $s');
}
}
sshnp.progressStream?.listen((s) =>logProgress(s));
Is your feature request related to a problem? Please describe.
We need a way to make sufficient info available to the app such that users have better visibility into what is going on while new sessions are being created
Describe the solution you'd like
Have Sshnp provide a way for programs to subscribe to a Stream of Strings, and have that stream yield Strings for all relevant events.
Describe alternatives you've considered
Bare minimum here could be to provide a way of listening to the logger; however the target audiences are slightly different. Having said that, providing a way to get programmatic access to a stream of messages from the logger may also be useful (e.g. if we were to provide users a way of creating support tickets based on something weird happening, then the logger info would be useful to us for more detailed diagnosis)
Additional context
No response
The text was updated successfully, but these errors were encountered: