Messag...::File(3pm)

πŸ“¦
version 0.117 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute

πŸ’– Message::Passing::Output::File πŸ’–

okay bestie, so this page is the manual for Message::Passing::Output::File β€” yeah the header up top gets all chopped and squished (Messag...::File(3pm) energy, tragic honestly), but the full name is the one and only Message::Passing::Output::File. she's a Perl module. she writes messages to files. slay. ✨


🌸 NAME 🌸

Message::Passing::Output::File β€” File output. that's it, that's the vibe πŸŽ€


✨ SYNOPSIS ✨

message-pass --input STDIN --output File --output_options '{"filename": "/tmp/my.log"}'
{"foo": "bar"}
{"foo":"bar"}

like, you run that, and the two lil JSON lines go in and get written out. it's giving pipeline realness πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Output messages to File. no cap, that is literally the entire job. messages go in, file goes brrr. πŸ“βœ¨


πŸ‘‘ METHODS πŸ‘‘

πŸ’– append

a boolean attribute, bestie. it controls whether the output file should be re-created or appended to. default is true. so by default she's adding to the file, not yeeting your old data. 🫢

πŸ’– filename

an attribute for the file name to write to. give her a path, she'll write there. iconic. 🌈

πŸ’– consume

consumes a message by JSON encoding it and printing it, followed by \n. so: encode β†’ print β†’ newline. every single time. she does not skip the newline. the newline is part of the brand. πŸ˜ŒπŸ’…


πŸ”₯ SEE ALSO πŸ”₯

  • Message::Passing β€” the whole fam is over there, go look πŸ‘€

πŸŽ€ SPONSORSHIP πŸŽ€

this module exists because of the wonderful people at Suretec Systems Ltd. <http://www.suretecsystems.com/> β€” they sponsored its development for their VoIP division called SureVoIP <http://www.surevoip.co.uk/> so it could be used with the SureVoIP API β€” <http://www.surevoip.co.uk/support/wiki/api_documentation>. absolute patrons of the arts, we love to see it πŸ‘‘πŸ’–


just go see Message::Passing. the receipts are all over there, bestie. 🧚


fr fr that's the whole page. every flag, every attribute, every default, every link β€” nothing skipped, nothing invented. periodt. πŸ’€βœ¨

and that's a wrap, babes! 🫢 this little writeup is from <b>perl v5.32.1</b>, dated <b>2021-11-09</b> β€” shoutout to the User Contributed Perl Documentation crew for hosting her, mwah πŸ’‹ go forth and log responsibly! πŸŒΈπŸ¦‹πŸ’–