non blocking version of log (issue #3)