Writting log tail to log or stdout