Côme Chilliet
c0ce272e9c
chore: Migrate away from OC::$server->getLogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pirms 4 mēnešiem
Josh Richards
7a212b1f38
Fix log rotation notification level (warning->info)
Fixes #42537
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
pirms 5 mēnešiem
Faraz Samapoor
9fa9975bc9
Refactors lib/private/Log.
Mainly using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
pirms 11 mēnešiem
Côme Chilliet
426c0341ff
Use typed version of IConfig::getSystemValue as much as possible
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pirms 1 gada
Carl Schwan
48d9c4d2b0
Port existing server code to new interface
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
pirms 2 gadiem
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pirms 3 gadiem
Christoph Wurst
cb057829f7
Update license headers for 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.
This also removes and empty lines from method/function bodies at the
beginning and end.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
pirms 4 gadiem
Arthur Schiwon
b841a477c6
log to $datadir/audit.log by default and add rotation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pirms 6 gadiem
Arthur Schiwon
38a90130ce
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pirms 6 gadiem
Morris Jobke
058f8123e6
Set the default log rotate size to 100 MB
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Morris Jobke
eb51f06a3b
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
pirms 6 gadiem
Robin Appelman
54f96e5f58
Get the logfile location while running the logrotate cron job instead of when registering the job
Signed-off-by: Robin Appelman <robin@icewind.nl>
pirms 7 gadiem
Joas Schilling
ba87db3fcc
Fix others
pirms 8 gadiem
Roeland Jago Douma
03f1a270cc
Move \OC\Log to PSR-4
pirms 8 gadiem
Thomas Müller
682821c71e
Happy new year!
pirms 8 gadiem
Morris Jobke
c60c793cf2
More cleanups of OC_Config usage
pirms 8 gadiem
Morris Jobke
b945d71384
update licence headers via script
pirms 8 gadiem
Thomas Müller
d3ac73c0c9
Remove OC_Log
pirms 9 gadiem
Jenkins for ownCloud
b585d87d9d
Update license headers
pirms 9 gadiem
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
pirms 9 gadiem
Jenkins for ownCloud
6a1a4880f0
Updating license headers
pirms 9 gadiem
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
pirms 10 gadiem
Morris Jobke
d4952bd9df
fix typo
pirms 10 gadiem
Bart Visscher
3fd2df4088
Only enable logrotate when configured. Also rotate size is settable.
pirms 10 gadiem
Bart Visscher
42f3ecb60f
Check for installed state before registering the logrotate background job
pirms 11 gadiem
Bart Visscher
62560ef859
Add description to log rotate class
pirms 11 gadiem
Bart Visscher
594a2af75a
Review fixes
pirms 11 gadiem
Bart Visscher
b5e2842e00
Very simple log rotation
pirms 11 gadiem