Jasig/cas — pull request #647 by mmoayyed (2014-08-06 07:17:15+00:00)
Title: Issue #460: TGT id to not be disclosed in logs

Fixes #460

## What is in this pull?
This patch binds against SLF4j APIs with a static binder that is provided by CAS. The CAS binder will pick the CAS LoggerFactory, which will create CAS loggers. The CAS logger itself is simply a wrapper/substitute logger around the "real" logger instance.

## How are loggers selected?
The actual logger instance is picked from what's available at runtime. The CAS logger factory will scan the classpath for logger factory instances, will remove itself from the list and will attempt to use the first one that is found to construct the logger from it, and pass it onto the CAS wrapper logger.

## How are ticket ids removed from the log?
The CAS wrapper logger will first remove the the ticket id from the log message, if any, and then will pass the message to the delegate/real logger. In our case, that is right now the Log4jLoggerAdapter or something like that :)

No changes to the CAS codebase, whatsoever.

Note: all components need to exist in the `org.slf4j.impl` for this all to work.