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
Stg plg system debug log category mode #5146
Stg plg system debug log category mode #5146
Conversation
Setup
BeforeYou will see logs for every category. Mostly AfterYou can set categories to |
@test success |
Thanks! |
@okonomiyaki3000 i think we should use Can we move the logging options to the logging file set? https://github.com/joomla/joomla-cms/blob/staging/plugins/system/debug/debug.xml#L168 Or should we do this with in a different PR? if i add 'jcontroller' or 'controller' i still get a 'jcontroller.log.php' |
Good point about btn-group. If you want it in the logging field set, that's a different PR but not one that I'm going to make. Yes, you have misunderstood what this is about. This has nothing to do with witing logs to files. This about displaying logs in the debug "console" or whatever it's called. |
Ok 👍 Now @test success. Please add the |
Multiple good tests setting to RTc - thanks |
@Comitter please let @okonomiyaki3000 time to add the |
@okonomiyaki3000 @zero-24 Looking at this PR, it was correct to suggest to use the button group for the Include/Exclude. However I would like to see the Include/exclude swapped. It looks weird that Include is red and exclude is green. |
@roland-d is it better if we change it? include -> green or other colors? |
@zero-24 Indeed, just like: |
Can you have a look into this PR against this branche?: okonomiyaki3000#1 This should implement it. but maybe a css fix is better? |
I'd like to hear some opinions on @zero-24 's PR. I don't have a problem with it but, it may cause a change to expected behavior in some cases (I can go into more detail if it's not obvious). I don't think it's a big deal so, unless there are any objections, I'll accept the PR. |
ok PR is closed based on comment by @roland-d to keep backwards compatible. but maybe we can add a comment that this should be changed with 4.0 @okonomiyaki3000 ? |
@zero-24 I have added the label to reevaluate for v4.0. This way it won't be forgotten. |
Yes @roland-d this makes more sense. Thanks! |
But there's actually no BC issue unless we insist on swapping the colors which, to me, is totally arbitrary. It's not really that 'include' is affirmative while 'exclude' is negative. They're just two different modes. We don't even need colors at all, this option could just be a select. |
Leaving it as-is isn't a problem either is it? I can't find it but there was something said about selects only for large listings, and button groups for 2 or 3 options. |
It's not really a problem to leave it as-is but 'exclude' mode is far more useful than 'include' mode. |
@okonomiyaki3000 I think you missed something. The exclude option has been merged into the core already. |
Really? Great! What are we talking about then? Just changing the values so the colors will be different? Then I'm done because I do not care about that at all. |
Like #2253 but for staging instead of master.
Basically, since
JLog
now supports category exclusion instead of just inclusion, the logging feature in this plugin should also give that option. Exclusion is much more useful than inclusion in this case anyway because you probably want to see most logs but you will never want to seedatabasequery
logs and you might get tired of looking atdeprecated
logs.