Côme Chilliet
c0ce272e9c
chore: Migrate away from OC::$server->getLogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
il y a 4 mois
Josh Richards
7a212b1f38
Fix log rotation notification level (warning->info)
Fixes #42537
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
il y a 5 mois
Faraz Samapoor
9fa9975bc9
Refactors lib/private/Log.
Mainly using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
il y a 11 mois
Côme Chilliet
426c0341ff
Use typed version of IConfig::getSystemValue as much as possible
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
il y a 1 an
Carl Schwan
48d9c4d2b0
Port existing server code to new interface
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
il y a 2 ans
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
il y a 3 ans
Christoph Wurst
cb057829f7
Update license headers for 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
il y a 4 ans
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>
il y a 4 ans
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
il y a 4 ans
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
il y a 4 ans
Arthur Schiwon
b841a477c6
log to $datadir/audit.log by default and add rotation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
il y a 6 ans
Arthur Schiwon
38a90130ce
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
il y a 6 ans
Morris Jobke
058f8123e6
Set the default log rotate size to 100 MB
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
il y a 6 ans
Morris Jobke
eb51f06a3b
Use ::class statement instead of string
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
il y a 6 ans
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
il y a 6 ans
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>
il y a 7 ans
Joas Schilling
ba87db3fcc
Fix others
il y a 8 ans
Roeland Jago Douma
03f1a270cc
Move \OC\Log to PSR-4
il y a 8 ans
Thomas Müller
682821c71e
Happy new year!
il y a 8 ans
Morris Jobke
c60c793cf2
More cleanups of OC_Config usage
il y a 8 ans
Morris Jobke
b945d71384
update licence headers via script
il y a 8 ans
Thomas Müller
d3ac73c0c9
Remove OC_Log
il y a 9 ans
Jenkins for ownCloud
b585d87d9d
Update license headers
il y a 9 ans
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
il y a 9 ans
Jenkins for ownCloud
6a1a4880f0
Updating license headers
il y a 9 ans
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
il y a 10 ans
Morris Jobke
d4952bd9df
fix typo
il y a 10 ans
Bart Visscher
3fd2df4088
Only enable logrotate when configured. Also rotate size is settable.
il y a 10 ans
Bart Visscher
42f3ecb60f
Check for installed state before registering the logrotate background job
il y a 11 ans
Bart Visscher
62560ef859
Add description to log rotate class
il y a 11 ans
Bart Visscher
594a2af75a
Review fixes
il y a 11 ans
Bart Visscher
b5e2842e00
Very simple log rotation
il y a 11 ans