       if block.end > block.start
         stream = fs.createReadStream(@filename, {start:block.start, end:block.end-1, encoding:"utf-8"})
         stream.on 'error',(error) =>
-          console.log("Tail error:#{error}")
+          console.error("Tail error:#{error}")
           @emit('error', error)
         stream.on 'end',=>
           @internalDispatcher.emit("next") if @queue.length >= 1

events= require("events")
fs =require('fs')

environment = process.env['NODE_ENV'] || 'development'


    stats =  fs.statSync(@filename)
    @internalDispatcher.on 'next',=>
      @readBlock()
    @pos = if @fromBeginning then 0 else stats.size
    @watch()


