Don't translate log messages.
1011257: Throw Conflict exception on StaleStateException

Wrap stale edits in a custom ConcurrentModificationException so that a
clients recieve a 409 with a more descriptive message.
Start logging in candlepin specific files rather than catalina.out.

Everything previously sent to catalina.out now goes to
/var/log/candlepin/candlepin.log.

Additionally anything WARN or higher will go to error.log in same
directory.
Use consumer UUID for principal, not name.

Consumer name can be changed, UUID cannot and would make a better
identifier for events.
Improve event logging in audit.log.

Saw some room for improvement.

Old format:

Tue Oct 02 11:38:47 ADT 2012 - OWNER CREATED on
402881983a21ea18013a21ea325f0002 owner 402881983a21ea18013a21ea325f0002
performed by org.candlepin.auth.PrincipalData@3c6d66d3

New format:

Thu Oct 03 12:51:18 ADT 2013 - POOL 40288198417f019b01417f0418f00562
DELETED for owner 40288198417f019b01417f04058d052b performed by user
admin
Log basic request info at INFO level.
Log a unique request/job ID with every statement.

Uses log4j's thread local MDC to store the value, which can be
referenced in the ConversionPattern in log4j.properties. If the value
has not been set, an empty string will be logged.

For HTTP requests we generate a UUID in the logging servlet filter.

For Pinsertter jobs, we use the already unique job name which matches
what you would see in cp_jobs as the job ID.

This allows us to grep for the statements specific to a particular
request or job execution very easily.
Drop a pinsetter job test.

This is failing due to the use of job context for new logging. However
it cannot be mocked because of the JobKey class being final.

Test is of marginal value and this code is up for replacement in a
separate branch, so removing for now.
Improve request/response logging.

Basic info about incoming request, the response, and how long it took
are logged at INFO.

Maintains the additional logging of headers/body if debug is enabled.
Minor logging improvements for registration.
Stop logging the thread.

This is largely redundant with the new request / job UUID logging. We
can still detect threads attempting to do things at the same time by
comparing the request UUIDs.
Cleanup bind logging.
Use custom log4j config during testing.

This fixes eclipse unit testing, buildr was already using the correct
file.
Logging cleanup, mostly for INFO output.
Add the requestUuid into servlet request attribs.

Set a servlet attribute so we can log it in access_log.

Also set a header with the info for the response.
Setup a access.log in our server.xml via deploy

For a default deploy, add an AccessValve config to
server.xml. This create a /var/log/candlepin/access.log.
Access_log is more or less apache http style log, but
we also add request time, subman client version if set,
and the requestUuid.
Add logrotate config for new Candlepin log files.
Merge remote-tracking branch 'origin/alikins/access_logging' into dgoodwin/logging
Log the org, if we know it.

Unfortunately this can't really be done in the LoggingFilter as we don't
know how to look up entities there. This means the initial Request log
entry will not know what org the request is specific to. However, once
we get into SecurityInterceptor and load the objects being verified, we
are now able to grab the org off each and store it for logging.

Some requests will not feature an org, as they are not specific to an
org.
Merge pull request #400 from candlepin/alikins/untranslate_log_messages

Don't translate log messages.