tcpdump
is a nice CLI utility to log everything from available network interfaces. The only pitfall is by default it truncates all strings to 96 bytes. Here is a cut&paste line:
sudo tcpdump -s256 -Xi lo ...
sudo tcpdump -s256 -Xi lo dst port ...
-X
is hex/ASCII form of presentation. 256
is a length of strings to print. lo
interface name, eth0, eth1 ...December 2004 January 2005 February 2005 March 2005 May 2005 July 2005 October 2005 January 2006 March 2006 May 2006 July 2006 December 2006 January 2007 February 2007 May 2007 July 2007 November 2007 January 2008 February 2008 July 2008 August 2008 September 2008 November 2008 April 2009