log.pl working