Netlist::Logger(3)
π Netlist::Logger(3) β your girl's guide to error collecting & reporting π
okay so real talk, this file lives in the Perl User Contributed Documentation section, and the module itself answers to the name Verilog::Netlist::Logger. same energy, two names, iykyk β¨
πΈ NAME πΈ
Verilog::Netlist::Logger β literally just error collection and reporting, that's the whole vibe π«Ά
β SYNOPSIS β
use Verilog::Netlist::Logger;
...
my $self = Verilog::Netlist::Logger->new();
$self->info("We're here\n");
$self->warn("Things look bad\n");
$self->error("Things are even worse\n");
$self->exit_if_error();
like yes bestie, that's it, that's the whole intro π¦
π DESCRIPTION π
so Verilog::Netlist::Logger is the designated β¨messengerβ¨ β it's what you use to report all the errors that get detected by the Verilog::Netlist::* structures. no cap, that's its entire job.
by default, Verilog::Netlist goes ahead and makes a brand-new Logger object all on its own, and then passes it down to all the contained objects π. but here's the fun part β you can make your own logger objects too, so you can catch those error messages or handle them however you want. main character energy: you decide π
π₯ MEMBER FUNCTIONS π₯
π $self->error(object, Text...)
prints an error about the object, in a standard format. the object has to have a fileline method β non-negotiable, bestie π
π $self->exit_if_error([allow=>'warning'])
exits the program if any errors were detected. periodt. and if you wanna be chill about it, you can optionally specify allow=>'warning' to ignore warnings β
π $self->info(Text...)
prints an informational about the object in a standard format. the object must have a fileline method π (yes, that's exactly what the docs say, i'm just the messenger π§)
π $self->lineno()
the line number the entity was created on π like, the receipts of where it all began.
π $self->unlink_if_error(filename)
requests that the given file be deleted if any errors are detected when the Logger object is destroyed π used for temporary files β so like, cleanup crew behavior, lowkey iconic π
π $self->warn(Text...)
prints a warning about the object in a standard format. the object must have a fileline method πΈ
π DISTRIBUTION π
Verilog-Perl is part of the <https://www.veripool.org/> free Verilog EDA software tool suite β yes, the whole suite, obsessed π
the latest version is available from CPAN and from <https://www.veripool.org/verilog-perl> β¨ go get her.
Copyright 2000-2024 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0 π«Ά
π AUTHORS π
Wilson Snyder <wsnyder@wsnyder.org> π
π¦ SEE ALSO π¦
Verilog-PerlVerilog::NetlistVerilog::Netlist::Subclass
and that's the whole page, bestie β¨π this little love letter was rendered by perl v5.42.0, dated 2025-07-25, and it still says Netlist::Logger(3) at the top of every page like the icon it is ππ
π¦ where this page comes from
- fedora 43: perl-Verilog-Perl 3.482-6.fc43 Β· LGPL-3.0-only OR Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms