13 Feb 2018 13:37:13 UTC
- Distribution: Piper
- Module version: 0.05
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (619 / 0 / 0)
- KwaliteeBus factor: 0
- 97.29% Coverage
- License: apache_2_0
- Perl: v5.10.0
- Activity24 month
- Download (53.74KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- UTILITY METHODS
- SEE ALSO
- COPYRIGHT AND LICENSE
Piper::Role::Logger - Role for logging and debugging in the Piper system
The role exists to support future subclassing and testing of the logging mechanism used by Piper.
This role requires the definition of the below methods, each of which will be provided the following arguments:
$segment # The pipeline segment calling the method $message # The message sent (a string) @items # Items that provide context to the message
This method is only called if the debug level of the segment is greater than zero.
This method should cause a
croak. It will do so automatically if not done explicitly, though with an extremely generic and unhelpful message.
This method is only called if either the verbosity or debug levels of the segment are greater than zero.
This method should issue a warning (such as
These methods should be used to determine the appropriate debug and verbosity levels for the logger. They honor the following environment variable overrides (if they exist) before falling back to the appropriate levels set by the given
Mary Ehlers <firstname.lastname@example.org>
This software is Copyright (c) 2017 by Mary Ehlers.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004