Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed file logging #523

Merged
merged 4 commits into from
Jul 25, 2016
Merged

Renamed file logging #523

merged 4 commits into from
Jul 25, 2016

Conversation

Faldon
Copy link
Contributor

@Faldon Faldon commented Jul 22, 2016

Changed file logging from 'owncloud' to 'file'

  • Updated the config to set log type to 'file' instead of 'owncloud'
  • Renamed the respective classes in OC\Log and OC\Core\Command\Log to File.
  • Changed default Syslog tag to Nextcloud
  • Retained backwards compatibility for configs with 'logtype' => 'owncloud'
  • Adjusted tests for the new file log.

Closes #490

- 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 nextcloud#490.
@mention-bot
Copy link

@Faldon, thanks for your PR! By analyzing the annotation information on this pull request, we identified @Xenopathic, @bartv2 and @LukasReschke to be potential reviewers

@MorrisJobke MorrisJobke added the 3. to review Waiting for reviews label Jul 22, 2016
@MorrisJobke
Copy link
Member

I tested this and it works 👍

Also the code looks good

@MorrisJobke MorrisJobke added this to the Nextcloud 11.0 milestone Jul 22, 2016
@@ -22,7 +22,7 @@
namespace Tests\Core\Command\Log;


use OC\Core\Command\Log\OwnCloud;
use OC\Core\Command\Log\File;
use Test\TestCase;

class OwnCloudTest extends TestCase {
Copy link
Member

Choose a reason for hiding this comment

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

Probabaly rename the test as well ;)

@nickvergessen
Copy link
Member

👍

@nickvergessen nickvergessen merged commit 4ad0c38 into nextcloud:master Jul 25, 2016
@nickvergessen
Copy link
Member

Could backport to 10?

@MorrisJobke
Copy link
Member

cc @karlitschek

@karlitschek
Copy link
Member

backport makes sense 👍

@MorrisJobke
Copy link
Member

backport makes sense 👍

Given the current situation I would like to not backport this to stable10 and only keep this in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants