Skip to content
Snippets Groups Projects
  1. Dec 11, 2015
  2. Mar 05, 2008
  3. Mar 04, 2008
  4. Mar 03, 2008
  5. Feb 28, 2008
  6. Feb 27, 2008
  7. Feb 14, 2008
  8. Feb 12, 2008
  9. Feb 07, 2008
    • Lasse Birnbaum Jensen's avatar
      Suggestion for new logger. · 972c5df4
      Lasse Birnbaum Jensen authored
      TrackID is always prepended to the logstring
      
      New logging options in config-template.php
      
      Possible to configure logging to use syslog or file
      
      Please test the new logging function. 
      
      Logging handler has only been added. The old logging function is still uses in the code. 
      
      After test all logging calls should be rewritten to the new format.
      
      Usage:
      
      Required:
      
      require_once('SimpleSAML/Logger.php');
      
      Logging:
      
      Logger::emergency("text to log");
      Logger::critical("text to log");
      Logger::alert("text to log");
      Logger::error("text to log");
      Logger::warning("text to log");
      Logger::notice("text to log");
      Logger::info("text to log");
      Logger::debug("text to log");
      Logger::emergency("text to log");
      
      Logger::info(array("text","to","log"));
      
      Statistics:
      Stats are prepended with STAT in the logfile for easier analysis.
      
      Logger::stats("SSO");
      
      Example (syslog): 
      Feb  7 21:02:33 server_name simpleSAMLphp[pid]: [trackid] loglevel text to log
      
      git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@268 44740490-163a-0410-bde0-09ae8108e29a
      972c5df4
  10. Feb 05, 2008
  11. Feb 04, 2008
  12. Jan 31, 2008
  13. Jan 30, 2008
  14. Jan 29, 2008
  15. Jan 28, 2008
  16. Jan 20, 2008
  17. Jan 17, 2008
  18. Jan 16, 2008
  19. Jan 11, 2008
  20. Dec 14, 2007
  21. Dec 13, 2007
  22. Nov 28, 2007
  23. Nov 08, 2007
  24. Oct 30, 2007
  25. Oct 24, 2007
  26. Oct 23, 2007
  27. Oct 21, 2007
  28. Oct 12, 2007
  29. Oct 06, 2007
  30. Oct 01, 2007
  31. Sep 30, 2007
Loading