summaryrefslogtreecommitdiffstats
path: root/lib/SimpleSAML/Logger/LoggingHandlerFile.php
Commit message (Collapse)AuthorAgeFilesLines
* Migrate all the logging handlers to namespaces. Make SimpleSAML\Logger a bit ↵Jaime Perez Crespo2016-04-011-113/+0
| | | | more intelligent so that it allows using custom logging handlers. Now you just need to implement SimpleSAML\Logger\LogginghandlerInterface in a class, and set the 'logging.handler' option in the configuration file to a string with the full name of your class.
* Fix loose comparison.Jaime Perez Crespo2016-03-311-1/+1
|
* Fix build. If we are logging to STDERR, we don't have to write to the ↵Jaime Perez Crespo2016-03-311-2/+2
| | | | filesystem anyway, so why checking?
* Reformat SimpleSAML_Logger_LoggingHandlerFile.Jaime Perez Crespo2016-03-311-12/+11
|
* Make SimpleSAML_Logger_LoggingHandlerFile::$logFile protected instead of ↵Jaime Perez Crespo2016-03-311-1/+8
| | | | private.
* Update the classes in lib/SimpleSAML/ too.Jaime Perez Crespo2016-03-091-8/+8
|
* s/simpleSAMLphp/SimpleSAMLphp/gJaime Perez Crespo2015-11-061-2/+2
| | | | (being respectful with occurences that might change the behaviour, i.e. default database prefixes)
* Move SimpleSAML_Utilities::initTimezone() to ↵Jaime Perez Crespo2015-04-201-1/+1
| | | | SimpleSAML\Utils\Time::initTimezone(). Deprecate the former.
* Reformat the logging classes. Extract the LoggingHandler to its own file. ↵Jaime Perez2014-06-171-42/+62
| | | | Add proper documentation. Fix typos.
* Add a new 'logging.format' option to control the formatting of the logs.Jaime Perez2014-06-171-6/+27
|
* SimpleSAML_Logger: Fix log levels on Windows.Olav Morken2011-11-171-8/+8
| | | | | | | | | | | PHP on Windows does not differentiate between all the different log levels, which means that attempting to specify the 'logging.level' option will not work properly. This patch replaces the use of the syslog constants with custom constants. Thanks to Ryan Panning for fixing this bug! git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2981 44740490-163a-0410-bde0-09ae8108e29a
* LoggingHandlerFile: Load timezone-settings from config.php.Olav Morken2010-04-161-0/+2
| | | | git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2251 44740490-163a-0410-bde0-09ae8108e29a
* Give default values for all configuration options from config.phpOlav Morken2009-08-141-2/+2
| | | | git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1665 44740490-163a-0410-bde0-09ae8108e29a
* Will now log human-readable log levels.Cato Olsen2009-03-271-3/+25
| | | | git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1448 44740490-163a-0410-bde0-09ae8108e29a
* Added options to configure processname for logging. Usefull when having ↵Lasse Birnbaum Jensen2008-06-181-3/+5
| | | | | | | | multiple installations on the same machine. Processname in the log is determined by the 'logging.processname' configuration key. It defaults to "simpleSAMLphp" if not set. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@667 44740490-163a-0410-bde0-09ae8108e29a
* Update everything to use the autoloader.Olav Morken2008-06-061-3/+0
| | | | git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@610 44740490-163a-0410-bde0-09ae8108e29a
* Adding a SIMPLESAML_INCPREFIX parameter before the inclusion of new files. ↵Andreas Åkre Solberg2008-03-051-2/+2
| | | | | | This workaround was neccessary for university of oslo to make simplesamlphp work when ini_Set was not available. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@353 44740490-163a-0410-bde0-09ae8108e29a
* Adding support for full paths outside the simplesamlphp installation. This ↵Andreas Åkre Solberg2008-02-271-1/+1
| | | | | | patch was provided by Kenneth Svee! Thanks! git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@327 44740490-163a-0410-bde0-09ae8108e29a
* renamed the logger class to follow the guidelines for classnaming. Also ↵Andreas Åkre Solberg2008-02-141-0/+9
| | | | | | added some new log entries, and add an entry for SSO login statistics git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@297 44740490-163a-0410-bde0-09ae8108e29a
* Suggestion for new logger.Lasse Birnbaum Jensen2008-02-071-0/+34
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