I create an InputStream class, that extends CiphetInputStream. I want to log all data from my InputStream (that i use as input in parser further) so i done following:
You can combine TeeInputStream and Logger.stream():
new TeeInputStream( yourStream, Logger.stream(Level.INFO, this) );