App::Y...Logging(3pm)
π App::Y...Logging β the vibe guide π
okay bestie, this is App::Yath::Options::Logging from the Perl user-contributed docs, and it's literally just the place where the logging command-line options for yath get defined. that's the whole thing. it's giving "options closet". no cap. π
β¨ DESCRIPTION β¨
This is where the command line options for logging are defined. that's it, that's the description β short and iconic, we love a concise queen. π¦
π PROVIDED OPTIONS π
π COMMAND OPTIONS π
π Logging Options π
girl get your scroll finger ready, we've got options.
--bzip2,--bz2,--bzip2_log,-B,--no-bzip2β use bzip2 compression when writing the log. this one implies-L, so turning it on drags logging along with it. the.bz2prefix is added to the log file name for you, no manual effort required. π--gzip,--gz,--gzip_log,-G,--no-gzipβ use gzip compression when writing the log. also implies-L. the.gzprefix is added to the log file name for you. yes ma'am. β¨--log,-L,--no-logβ turn on logging. that's the whole job. π«Ά--log-dir ARG,--log-dir=ARG,--no-log-dirβ specify a log directory. if that doesn't work out it will fall back to the system temp dir. it's got a plan B, we stan a prepared icon. πΈ--log-file ARG,--log-file=ARG,-F ARG,-F=ARG,--no-log-fileβ specify the name of the log file. this option implies-L, obviously, because what's a log file with no logging. π--log-file-format ARG,--log-file-format=ARG,--lff ARG,--lff=ARG,--no-log-file-formatβ specify the format for automatically-generated log files. heads up: it gets overridden by--log-fileif you gave one. this option implies-L. the default is$YATH_LOG_FILE_FORMATif that is set, or else"%!P%Y-%m-%d~%H:%M:%S~%!U~%!p.jsonl".
so basically it's a string where percent-escape sequences get replaced as per POSIX::strftime. and bestie there are extra special escape sequences on top of that, here's the whole roster:
%!Pβ the project name followed by a~, but only if a project is defined, otherwise it's an 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: YATH_LOG_FILE_FORMAT, TEST2_HARNESS_LOG_FORMAT. iykyk. π₯
π SOURCE π
the source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/. go be nosy, it's encouraged. π
π MAINTAINERS π
- Chad Granum <exodist@cpan.org>
π AUTHORS π
- Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright 2020 Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/
and that's a wrap on the App::Y...Logging(3pm) page, brought to you by perl v5.40.1, dated 2026-05-10. go log something gorgeous, bestie. πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- ubuntu stonking: libtest2-harness-perl 1.000172-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms