added log/clear log functionality to nodeapp