description=> 'Specify the format for automatically-generated log files. Overridden by --log-file, if given. This option implies -L (Default: \$YATH_LOG_FILE_FORMAT, if that is set, or else "%!P%Y-%m-%d~%H:%M:%S~%!U~%!p.jsonl"). This is a string in which percent-escape sequences will be replaced as per POSIX::strftime. The following special escape sequences are also replaced: (%!P : Project name followed by a ~, if a project is defined, otherwise empty string) (%!U : the unique test run ID) (%!p : the process ID) (%!S : the number of seconds since local midnight UTC)',
);
option bzip2=> (
short=> 'B',
alt=> ['bz2', 'bzip2_log'],
description=> 'Use bzip2 compression when writing the log. This option implies -L. The .bz2 prefix is added to log file name for you',
);
option gzip=> (
short=> 'G',
alt=> ['gz', 'gzip_log'],
description=> 'Use gzip compression when writing the log. This option implies -L. The .gz prefix is added to log file name for you',
);
option log_dir=> (
type=> 's',
normalize=> \&clean_path,
description=> 'Specify a log directory. Will fall back to the system temp dir.',
);
option log_file=> (
short=> 'F',
type=> 's',
normalize=> \&clean_path,
description=> "Specify the name of the log file. This option implies -L.",
);
option write_coverage=> (
type=> 'd',
normalize=> \&clean_path,
long_examples=> ['', '=coverage.json'],
description=> "Create a json file of all coverage data seen during the run (This implies --cover-files).",
# unrecognized `%!x` expansion. Should we warn? Die?
return"%!$letter";
}
}
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
App::Yath::Options::Logging - Logging options for yath
=head1 DESCRIPTION
This is where the command line options for logging are defined.
=head1 PROVIDED OPTIONS
=head2 COMMAND OPTIONS
=head3 Logging Options
=over 4
=item --bzip2
=item --bz2
=item --bzip2_log
=item -B
=item --no-bzip2
Use bzip2 compression when writing the log. This option implies -L. The .bz2 prefix is added to log file name for you
=item --gzip
=item --gz
=item --gzip_log
=item -G
=item --no-gzip
Use gzip compression when writing the log. This option implies -L. The .gz prefix is added to log file name for you
=item --log
=item -L
=item --no-log
Turn on logging
=item --log-dir ARG
=item --log-dir=ARG
=item --no-log-dir
Specify a log directory. Will fall back to the system temp dir.
=item --log-file ARG
=item --log-file=ARG
=item -F ARG
=item -F=ARG
=item --no-log-file
Specify the name of the log file. This option implies -L.
=item --log-file-format ARG
=item --log-file-format=ARG
=item --lff ARG
=item --lff=ARG
=item --no-log-file-format
Specify the format for automatically-generated log files. Overridden by --log-file, if given. This option implies -L (Default: \$YATH_LOG_FILE_FORMAT, if that is set, or else "%!P%Y-%m-%d~%H:%M:%S~%!U~%!p.jsonl"). This is a string in which percent-escape sequences will be replaced as per POSIX::strftime. The following special escape sequences are also replaced: (%!P : Project name followed by a ~, if a project is defined, otherwise empty string) (%!U : the unique test run ID) (%!p : the process ID) (%!S : the number of seconds since local midnight UTC)
Can also be set with the following environment variables: C<YATH_LOG_FILE_FORMAT>, C<TEST2_HARNESS_LOG_FORMAT>
=item --write-coverage
=item --write-coverage=coverage.json
=item --no-write-coverage
Create a json file of all coverage data seen during the run (This implies --cover-files).
=back
=head1 SOURCE
The source code repository for Test2-Harness can be found at