Compile a log format string to perl-code. For faster generating access_log line.