App::C...ToFile(3pm)

πŸ“¦
version 0.231 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

✨ NAME ✨

App::CELL::Test::LogToFile β€” bestie, this is the one that actually turns on logging. Like, for real for real. It's made to be used inside unit tests πŸ’–

(also hi yes this page lives in the App::C...ToFile(3pm) corner of the perl manual-verse, in case you were wondering where you wandered into πŸ¦‹)


🌸 SYNOPSIS 🌸

use App::CELL::Test::LogToFile;

That's it. That's the whole move. πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

okay so the tea: App::CELL::Test::LogToFile gives you a super easy way to switch on log-to-temporary-file for any given unit test. You literally just use it and then go be happy 🫢 no config, no setup arc, no twenty-line boilerplate situation. It's giving effortless.

It would probably work outside of unit tests too, honestly?? Except it wouldn't, because of the call to diag. So, like, that's the catch πŸ™ˆ. Unit tests only, bestie. That's the vibe check and it passed.


not me writing a whole manpage for a module whose entire job is one line of use 😭 but like, iconic behavior honestly πŸ‘‘

sign-off time πŸŽ€ this little page is perl v5.34.0, dated 2022-07-17, and it came to you straight from App::C...ToFile(3pm) β€” love her, read her, use her βœ¨πŸ’–πŸ¦‹

πŸ“¦ where this page comes from