Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

Tools

Log::Message::Config

Perl 5 version 18.0 documentation
Recently read

Log::Message::Config

NAME

Log::Message::Config - Configuration options for Log::Message

SYNOPSIS

  1. # This module is implicitly used by Log::Message to create a config
  2. # which it uses to log messages.
  3. # For the options you can pass, see the C<Log::Message new()> method.
  4. # Below is a sample of a config file you could use
  5. # comments are denoted by a single '#'
  6. # use a shared stack, or have a private instance?
  7. # if none provided, set to '0',
  8. private = 1
  9. # do not be verbose
  10. verbose = 0
  11. # default tag to set on new items
  12. # if none provided, set to 'NONE'
  13. tag = SOME TAG
  14. # default level to handle items
  15. # if none provided, set to 'log'
  16. level = carp
  17. # extra files to include
  18. # if none provided, no files are auto included
  19. include = mylib.pl
  20. include = ../my/other/lib.pl
  21. # automatically delete items
  22. # when you retrieve them from the stack?
  23. # if none provided, set to '0'
  24. remove = 1
  25. # retrieve errors in chronological order, or not?
  26. # if none provided, set to '1'
  27. chrono = 0

DESCRIPTION

Log::Message::Config provides a standardized config object for Log::Message objects.

It can either read options as perl arguments, or as a config file. See the Log::Message manpage for more information about what arguments are valid, and see the Synopsis for an example config file you can use

SEE ALSO

Log::Message, Log::Message::Item, Log::Message::Handlers

AUTHOR

This module by Jos Boumans <kane@cpan.org>.

Acknowledgements

Thanks to Ann Barcomb for her suggestions.

COPYRIGHT

This module is copyright (c) 2002 Jos Boumans <kane@cpan.org>. All rights reserved.

This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.