try {
OutputStream outputStream = new FileOutputStream(_fileName);
PrintWriter writer = new PrintWriter(outputStream);
writer.println(_numberOfBytes + " have been sent through the stream");
} catch (Exception e) {
System.out.println("Log failure with exception\n" + e);
e.printStackTrace();
}