prepare the log method by Log4Perl