summaryrefslogtreecommitdiffstats
path: root/lib/private/Log.php
Commit message (Collapse)AuthorAgeFilesLines
* Loglevel is an intRoeland Jago Douma2018-02-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Typehint ThrowableRoeland Jago Douma2018-02-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make ILogger strictRoeland Jago Douma2018-02-271-16/+17
| | | | | | | * Make implementations strict * Add scalar typehints Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Pass log level to log reportersMorris Jobke2017-11-271-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Pass the exception context to the crash reporterChristoph Wurst2017-11-141-1/+1
| | | | | | | | This should allow better reports as often the app id is passed as context. While this is not used right now, I'd like to have this for NC13 as adding it later will break the interface for existing apps Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a mechanism to register crach reportersChristoph Wurst2017-11-141-4/+12
| | | | | | | | This adds a crash reporter registry, which is meant for third party apps to hook into the error logging/reporting chain. This way, external tools like Sentry can be used to track and aggregate system crashes. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersMorris Jobke2017-11-061-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Added additional methods for removal of sensitive infoJohannes Schlichenmaier2017-10-271-0/+6
| | | | Signed-off-by: Johannes Schlichenmaier <johannes@schlichenmaier.info>
* Improve exception handlingMorris Jobke2017-09-261-0/+3
| | | | | | | | | | If there is an exception in the template handling then a white page is shown. This improves the handling of this and shows text only about the internal error. To test this just setup redis as cache and then disable the php-redis module. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't log LDAP password when server is not availableJoas Schilling2017-09-061-3/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't log passwords on dav exceptionsJoas Schilling2017-06-291-5/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add method to $methodsWithSensitiveParametersMorris Jobke2017-04-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't log the password on confirmPassword when LDAP throws an exceptionJoas Schilling2017-02-071-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Better fallback for unknown log typesJoas Schilling2017-01-101-9/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add testsJoas Schilling2017-01-091-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Handle log_type "nextcloud" more gracefullyJoas Schilling2017-01-051-5/+22
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Default to empty stringLukas Reschke2016-10-071-1/+1
| | | | | | | | Otherwise `null` is returned which leads to a ton of similar error messages if the log condition setting is enabled.: ``` {"reqId":"3wVBarnDfOV3qkI1bVCU","remoteAddr":"89.98.78.41","app":"PHP","message":"hash_equals(): Expected user_string to be a string, null given at \/var\/www\/html\/lib\/private\/Log.php#275","level":3,"time":"2016-10-07T14:22:15+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"icewind"} ```
* Change the minimum log level to fatalJuan Pablo Villafáñez2016-09-261-1/+1
| | | | | | Downstreaming of https://github.com/owncloud/core/pull/26213 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* hide parameters of tryLogin when loggingArthur Schiwon2016-08-221-0/+3
|
* Changed code style and made use of '===' comparison.Thomas Pulzer2016-07-221-1/+4
|
* Changed logtype to file instead of owncloud.Thomas Pulzer2016-07-221-1/+3
| | | | | | | | | | | | | | - Updated the config sample to point to log_type='file' - Renamed the Class for logfile logging to File in namespace 'OC\Log\'. Changed the occurrences of 'OC\Log\Owncloud' to 'OC\Log\File'. - Renamed the Class for log:file command to File in namespace 'OC\Core\Command\Log\File'. Changed registration of the command to use 'OC\Core\Command\Log\File'. - Changed default Syslog tag to Nextcloud - Retained backwards compatibility for configs with 'logtype' => 'owncloud' - Adjusted tests for the new file log. Closes #490.
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+4
|
* Sanitize more config options and stack tracesMorris Jobke2016-07-081-0/+1
|
* Do not log token or challenge with exception stacktrace (#25026)Joas Schilling2016-06-081-1/+27
| | | | | | * Make the filtering better readable * Add some more methods to the sensitive list
* Update license headersLukas Reschke2016-05-261-1/+3
|
* Move OC_Log_xx to \OC\Log namespaceRoeland Jago Douma2016-05-031-1/+1
|
* Remove the password from the validateUserPass() method as wellJoas Schilling2016-05-021-1/+1
|
* Move more of \OC to PSR-4Roeland Jago Douma2016-04-291-0/+292
* \OC\DateTimeFormatter * \OC\DateTimeZone * \OC\ForbiddenException * \OC\HTTPHelper * \OC\HintException * \OC\LargeFileHelper * \OC\Log * \OC\NaturalSort * \OC\NavigationManager * \OC\NeedsUpdateException * \OC\NotSquareException