SimpleSAMLPhp library
This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
lassebirnbaum c0c2a3662b Suggestion for new logger.
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: http://simplesamlphp.googlecode.com/svn/trunk@268 44740490-163a-0410-bde0-09ae8108e29a
2008-02-07 20:54:21 +00:00
attributemap Implementing attributemapping and attribute filtering 2007-10-21 06:46:14 +00:00
cert Initial commit of version 0.4 of simplesamlphp 2007-09-14 11:20:59 +00:00
config Suggestion for new logger. 2008-02-07 20:54:21 +00:00
dictionaries Implementeed better error handling. Separate static function for fatal error in utitilies that present a error the user. This page to the user shows a error text that can be localized to several languages, the error page also shows debug text, and a way to submit errors to the administrators. 2008-01-31 15:08:12 +00:00
docs Fix some static references after turning on PHP notice strict logging... 2008-02-07 14:28:10 +00:00
extra Updating sending metadata part to be more flexible and allow sending metadata to dkaai and others 2008-01-31 15:29:10 +00:00
lib Suggestion for new logger. 2008-02-07 20:54:21 +00:00
log Suggestion for new logger. 2008-02-07 20:54:21 +00:00
metadata-templates Tidy up the metadata-templates 2008-02-06 13:23:57 +00:00
templates/default Templates: close stylesheet link element. 2008-02-07 14:59:54 +00:00
www CSS: Left-aligned table row headings for status table. 2008-02-07 15:03:48 +00:00
COPYING added lgpl licence 2008-01-30 14:16:59 +00:00

docs/README

Updated: December 19th, 2007


All you need to know to install and configure simpleSAMLphp is available at:
http://rnd.feide.no/view/simplesamlphpdocs

simpleSAMLphp homepage:
http://rnd.feide.no/simplesamlphp

simpleSAMLphp mailinglist (for support):
http://rnd.feide.no/content/simplesamlphp-users-mailinglist


To contact the author team:
andreas@uninett.no
(please use the mailinglist as often as possible for support questions and feature requests)