Packages / openSUSE Tumbleweed / Source / perl-Log-Contextual

Source Package: perl-Log-Contextual (0.009001-1.8)

Simple logging interface with a contextual log

Major benefits: * * Efficient The default logging functions take blocks, so if a log level is disabled, the block will not run: log_debug { "the new count in the database is " . $rs->count }; Similarly, the 'D' prefixed methods only 'Dumper' the input if the level is enabled. * * Handy The logging functions return their arguments, so you can stick them in the middle of expressions: for (log_debug { "downloading:\n" . join qq(\n), @_ } @urls) { ... } * * Generic 'Log::Contextual' is an interface for all major loggers. If you log through 'Log::Contextual' you will be able to swap underlying loggers later. * * Powerful 'Log::Contextual' chooses which logger to use based on user defined 'CodeRef's. Normally you don't need to know this, but you can take advantage of it when you need to later. * * Scalable If you just want to add logging to your basic application, start with Log::Contextual::SimpleLogger and then as your needs grow you can switch to Log::Dispatchouli or Log::Dispatch or Log::Log4perl or whatever else. This module is a simple interface to extensible logging. It exists to abstract your logging interface so that logging is as painless as possible, while still allowing you to switch from one logger to another. It is bundled with a really basic logger, Log::Contextual::SimpleLogger, but in general you should use a real logger instead. For something more serious but not overly complicated, try Log::Dispatchouli (see SYNOPSIS for example.)

Package information

Homepage
[https://metacpan.org/release/Log-Contextual]
License
Artistic-1.0 OR GPL-1.0-or-later
Супровідник downstream-пакета
Невідомо: не зазначено в проіндексованому джерелі

The following binary packages are built from this source package:

Відомі вразливості

У відстежуваних джерелах немає відповідних повідомлень.

Остання синхронізація:

[Каталог CVE]

Джерела

  • Authoritative source; repository metadata signature verified

    Доказ підпису

    tumbleweed-oss-multiarch:4db10cdde3ad82c7e22be35753c9e164b4bdd30f92db4aee17a0d4c94c5f902f

    Repository-signature verification record
    Signed-object SHA-256
    4db10cdde3ad82c7e22be35753c9e164b4bdd30f92db4aee17a0d4c94c5f902f
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable