phpCAS icon indicating copy to clipboard operation
phpCAS copied to clipboard

Improve routine logging

Open apetro opened this issue 11 years ago • 2 comments

Going beyond the debug logging, implement routine logging akin to that available in other language/platform CAS client libraries.

Perhaps adding use of a logging framework such as log4php.

represents PHPCAS-135 in GitHub issue tracker.

apetro avatar Nov 16 '12 14:11 apetro

I agree. We need a bit more modular approach for logging/debugging. There is currently no real logging that is suitable for normal operations and error recording etc.

Something like log4php might be a solution.

jfritschi avatar Nov 17 '12 13:11 jfritschi

Logging via something like log4php would be really useful to know exactly what went wrong when exceptions are thrown. I recently tested what error/exception would happen if the cert path was wrong (from phpCAS::setCasServerCACert()) and all I got was the "CAS Authentication failed!" page and a CAS_AuthenticationException with no message string. I looked at the other issues and nothing seems to address this directly. Has this enhancement been solved in a different way? Is this enhancement dead?

aabrahamian avatar Oct 28 '14 17:10 aabrahamian