Log::Co...Package(3)

πŸ’– NAME πŸ’–

Bestie, welcome to the Log::Co...Package(3) page from the User Contributed Perl Documentation! This one is all about Log::Contextual::Easy::Package β€” it imports all logging methods with WarnLogger as the default package logger. Slay. πŸ’…

✨ VERSION ✨

version 0.009001 β€” iconic, no cap. πŸŽ€

πŸš€ SYNOPSIS πŸš€

In your module:

package My::Module;
use Log::Contextual::Easy::Package;

log_debug { "your message" };
Dlog_trace { $_ } @vars;

In your program:

use My::Module;

# enable warnings
$ENV{MY_MODULE_UPTO}="TRACE";

# or use a specific logger with set_logger / with_logger

🌸 DESCRIPTION 🌸

By default, this module enables a Log::Contextual::WarnLogger with "env_prefix" based on the module's name that uses Log::Contextual::Easy. The logging levels are set to "trace" "debug", "info", "warn", "error", and "fatal" (in this order) and all logging functions (log_..., "logS_...", "Dlog_...", and "Dlog...") are exported. That's the whole squad, periodt. πŸ’–

For what "::Package" implies, see -package_logger in Log::Contextual.

πŸ‘€ SEE ALSO πŸ‘€

Log::Contextual::Easy::Default β€” go peek, bestie, iykyk. πŸ¦‹

πŸ› BUGS πŸ›

Please report any bugs or feature requests on the bugtracker website https://github.com/haarg/Log-Contextual/issues.

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. Help the maintainers help you, fr fr. 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> β€” king behavior. πŸ‘‘

This software is copyright (c) 2024 by Arthur Axel "fREW" Schmidt.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


Catch you later, bestie β€” this page came from perl v5.42.0, dated 2024-06-23. Bye! πŸ’–βœ¨

πŸ“¦ where this page comes from