reading from log file instead of log class