summaryrefslogtreecommitdiffstats
path: root/lib/private/Log
Commit message (Collapse)AuthorAgeFilesLines
...
* use SystemConfig, less dependencies, and not publicly neededArthur Schiwon2018-04-262-24/+17
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* log to $datadir/audit.log by default and add rotationArthur Schiwon2018-04-261-16/+10
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add missing php doc and type hintsArthur Schiwon2018-04-261-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* improve Syslog a littleArthur Schiwon2018-04-261-3/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* revert Log's dependency to SystemConfig to work during InstallationArthur Schiwon2018-04-261-1/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move IFileBased to public namespace, logreader needs itArthur Schiwon2018-04-262-30/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* offer API to create own File log. admin_audit makes use of itArthur Schiwon2018-04-265-48/+37
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* destaticfy Log classesArthur Schiwon2018-04-266-49/+155
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* move log constants to ILoggerArthur Schiwon2018-04-263-7/+12
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Log classnames of arguments in exception traceRobin Appelman2018-04-171-0/+140
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #8946 from nextcloud/log-exceptions-as-nested-array-2Morris Jobke2018-04-111-1/+1
|\ | | | | Log exceptions as nested array instead of encoded json
| * Log exceptions as nested array instead of encoded jsonRobin Appelman2018-04-101-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Set the default log rotate size to 100 MBMorris Jobke2018-04-111-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-291-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Request->getHeader() should always return a stringMorris Jobke2018-01-171-1/+4
| | | | | | | | PHPDoc (of the public API) says that this method returns string but it also returns null, which is not allowed in some method calls. This fixes that behaviour and returns an empty string and fixes all code paths that explicitly checked for null to be still compliant. Found while enabling the strict_typing for lib/private for the PHP7+ migration. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-062-1/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Ensure log message is UTF-8 encodedLukas Reschke2017-08-171-1/+12
| | | | | | | | | | | PHP's json_encode only accept proper UTF-8 strings, loop over all elements to ensure that they are properly UTF-8 compliant or convert them manually. Without this somebody passing an invalid User Agent may make json_encode return false which will get logged as empty newline. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use constantsJoas Schilling2017-04-131-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Reorder the entries of the log for easier readingJuan Pablo Villafáñez2017-04-121-5/+5
|
* Merge pull request #3310 from duritong/patch-1Morris Jobke2017-04-041-1/+3
|\ | | | | only chmod logfile if necessary
| * only chmod logfile if necessaryduritong2017-01-291-1/+3
| | | | | | otherwise e.g. on SELinux this will log an error, so we better avoid it if not necessary.
* | author updateRoger Szabo2017-03-101-0/+1
| | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* | improvement of userAgent variable assigmentRoger Szabo2017-03-101-1/+1
| | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* | log user agent globally insteadRoger Szabo2017-03-101-0/+2
| | | | | | | | Signed-off-by: Roger Szabo <roger.szabo@web.de>
* | Revert unintentional log timestamp format changeJoas Schilling2017-01-301-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix default value for logdateformat - fixes #3107Morris Jobke2017-01-191-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Get the logfile location while running the logrotate cron job instead of ↵Robin Appelman2017-01-061-1/+3
| | | | | | when registering the job Signed-off-by: Robin Appelman <robin@icewind.nl>
* log version number in each log lineMorris Jobke2016-10-061-2/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Reverted the default syslog tag to avoid breaking existing systems.Thomas Pulzer2016-07-221-1/+1
|
* Changed logtype to file instead of owncloud.Thomas Pulzer2016-07-222-2/+2
| | | | | | | | | | | | | | - 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-214-6/+12
|
* Changed name of default logfile from owncloud.log to nextcloud.log.Thomas Pulzer2016-07-041-2/+2
|
* Hack to prevent infinite loop with LDAP + loggingVincent Petry2016-05-311-3/+2
| | | | Forward port of a50619200c6a08929dbe802118a6afadb376b866 to 9.1/master
* Update license headersLukas Reschke2016-05-263-3/+5
|
* Move \OC\Log to PSR-4Roeland Jago Douma2016-05-035-0/+433