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