The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Keystone::Resolver::LogLevel - logging levels for Keystone Resolver

SYNOPSIS

 $resolver->option(loglevel => (Keystone::Resolver::LogLevel::CHITCHAT &
                                Keystone::Resolver::LogLevel::CACHECHECK));
 print Keystone::Resolver::LogLevel::label(Keystone::Resolver::LogLevel::PARSEXSLT);

DESCRIPTION

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.

LOGGING LEVELS

CHITCHAT

Notify events of general interest such as starting up and shutting down. (DEADLY WARNING: Only use this if you like that kind of thing.)

CACHECHECK

Notify when checking for the existence of any kind of object in a cache.

PARSEXSLT

Notify when parsing an XSLT stylesheet.

DUMPDESCRIPTORS

Dump the contents of the parsed descriptors.

SHOWGENRE

Dump the referent object before trying to resolve it.

SHOWGENRE

Show the genre (both ID and name) of each object resolved.

DBLOOKUP

Show the results of looking up IDs and tags in the resource database.

MKRESULT

Show the results of looking up IDs and tags in the resource database.

SQL

Show SQL statements before executing them.

DEREFERENCE

Indicate when an element of an OpenURL is dereferenced. This includes both a By-Reference ContextObject, and individual entities that are specified by reference.

DISSECT

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.

RESOLVEID

Indicate when any kind of identifier (DOI, PubMed ID, etc.) is resolved, and what the results are.

CONVERT01

Log the conversion of OpenURL v0.1 parameters to their v1.0 equivalents, and the creation of additional parameters required by v1.0.

HANDLE

Indicate when a service handles a request, and whether the result is a usable URL or a fatal or non-fatal error.

WARNING

Warnings generated by bad recipes and suchlike.

LIFECYCLE

Information about the creation and destruction of objects such as resolvers and databases, whether explicit or garbage-collected.

METHODS

num()

 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.

label()

 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.