Added an example of logging frames JSON-encoded into a file.

Signed-off-by: Paulo Pires <pjpires@gmail.com>