Skip to content

Instantly share code, notes, and snippets.

@zarinfam
Created October 2, 2019 13:53
Show Gist options
  • Save zarinfam/bfbff0152a01be5297ff66f5487c9ae5 to your computer and use it in GitHub Desktop.
Save zarinfam/bfbff0152a01be5297ff66f5487c9ae5 to your computer and use it in GitHub Desktop.
Created with Copy to Gist
public static <T extends LogReader & LogStreamer> void streamLog(T logSystem){
logSystem.read().forEach(logSystem::stream);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment