The Perl 5 module Log::Trace provides a unified approach to tracing.