Keystone::Resolver::LogLevel - logging levels for Keystone Resolver
$resolver->option(loglevel => (Keystone::Resolver::LogLevel::CHITCHAT & Keystone::Resolver::LogLevel::CACHECHECK)); print Keystone::Resolver::LogLevel::label(Keystone::Resolver::LogLevel::PARSEXSLT);
This trivial class supplies a set of symbolic constants for the bitmasks used in log-levels for Keystone Resolver logs. These may be arithmetrically ORred together to provide the resolver with a requested logging level consisting of more than one of the levels defined here.
Notify events of general interest such as starting up and shutting down. (DEADLY WARNING: Only use this if you like that kind of thing.)
Notify when checking for the existence of any kind of object in a cache.
Notify when parsing an XSLT stylesheet.
Dump the contents of the parsed descriptors.
Dump the referent object before trying to resolve it.
Show the genre (both ID and name) of each object resolved.
Show the results of looking up IDs and tags in the resource database.
Show SQL statements before executing them.
Indicate when an element of an OpenURL is dereferenced. This includes both a By-Reference ContextObject, and individual entities that are specified by reference.
Indicate when a By-Value OpenURL (including one in which that value was fetched because it was originally By-Reference) is dissected into KEV elements.
Indicate when any kind of identifier (DOI, PubMed ID, etc.) is resolved, and what the results are.
Log the conversion of OpenURL v0.1 parameters to their v1.0 equivalents, and the creation of additional parameters required by v1.0.
Indicate when a service handles a request, and whether the result is a usable URL or a fatal or non-fatal error.
Warnings generated by bad recipes and suchlike.
Information about the creation and destruction of objects such as resolvers and databases, whether explicit or garbage-collected.
print Keystone::Resolver::LogLevel::num("parsexslt,sql");
Returns a numeric value representing the comma-separated set of logging levels listed in the argument -- namely, the sum of the values corresponding to each individual level. It is a fatal error to include an undefined logging-level name.
print Keystone::Resolver::LogLevel::label(Resolver::LogLevel::PARSEXSLT | Resolver::LogLevel::SQL);
Returns a short human-readable string describing the combination of logging-levels specified as the argument.
To install Keystone::Resolver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Keystone::Resolver
CPAN shell
perl -MCPAN -e shell install Keystone::Resolver
For more information on module installation, please visit the detailed CPAN module installation guide.