Skip to content

occ commands to manage logging#18369

Merged
MorrisJobke merged 4 commits into
masterfrom
occ-log
Aug 20, 2015
Merged

occ commands to manage logging#18369
MorrisJobke merged 4 commits into
masterfrom
occ-log

Conversation

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

In similar vein to the maintenance:* commands and others, this PR introduces two new occ commands, log:manage and log:owncloud. It takes away the requirement to look at the documentation to change logging settings.

log:manage allows the following information to be set/displayed: logging backend (owncloud, errorlog, syslog), log level and log timezone.

log:owncloud manages the owncloud logging backend, and can be used to set/display: log filename and log rotation size. These are parameters specific to the owncloud backend, and so get their own command

@PVince81 we discussed this briefly

cc @DeepDiver1975 @MorrisJobke @LukasReschke

@karlitschek

Copy link
Copy Markdown
Contributor

Very cool and useful!! 👍

@RobinMcCorkell

Copy link
Copy Markdown
Contributor Author

It'd be nice if the CI build slave didn't shutdown while testing this... I'll try again in the morning.

@MorrisJobke MorrisJobke added this to the 8.2-current milestone Aug 18, 2015
@DeepDiver1975

Copy link
Copy Markdown
Member
02:33:57 + phpenv local 5.3.28
02:33:57 /tmp/hudson6519004932099214154.sh: 3: /tmp/hudson6519004932099214154.sh: phpenv: not found

@DeepDiver1975

Copy link
Copy Markdown
Member

@DeepDiver1975 STOP PLAYING AROUND WITH THE CI SYSTEM!

Comment thread core/command/log/manage.php Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$level is unused

@DeepDiver1975

Copy link
Copy Markdown
Member

I'd like to see unit test on these new commands - THX

Robin McCorkell added 3 commits August 19, 2015 12:33
log:manage can set/display the log backend, log level and log timezone
log:owncloud can set/display the log filename and log file rotation size
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

Comment thread config/config.sample.php

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carlaschroder please review these changes since the will be re-used in the documentation

@ghost

ghost commented Aug 19, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

@PVince81

Copy link
Copy Markdown
Contributor

👍

Now all I'm missing is another command "./occ log:human" that outputs the log in a properly formatted way, with nicely presented stack traces (I'm tired of manually reformatting stack traces in bug reports)

@RobinMcCorkell

Copy link
Copy Markdown
Contributor Author

@PVince81 Getting there 😄

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works 👍

MorrisJobke added a commit that referenced this pull request Aug 20, 2015
occ commands to manage logging
@MorrisJobke MorrisJobke merged commit c7b0d50 into master Aug 20, 2015
@MorrisJobke MorrisJobke deleted the occ-log branch August 20, 2015 10:57
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants