@parallel
def logs():
 sudo('tail -f {logdir}* /var/log/nginx/*.log'.format(logdir=LOG_DIR))

@ parallel def logs ( ) : sudo ( 'tail -f {logdir}* /var/log/nginx/*.log' . format ( logdir = LOG_DIR ) )
returns the logs for the container .