-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add categories for Y.log entries missing them #1610
Conversation
It seems that we really want to change |
Okay, I've modified the patch so that we set a default category on the condition that:
I looked at changing the default logLevel to 'warn' (from debug) but this causes all unit tests to not log so needs more of a look in, perhaps in another issue. |
Looks like the fail is unrelated to these changes. |
I'm not convinced that just adding a new default category for log messages is going to help. Obviously, bunch of people will do |
At the moment, there are too many instances of Y.log which seem to have I'd argue that most people don't really want to read these messages and if That said, if you'd prefer this to go down as 'info', so I'm happy to We'd very much like this to make the next release of YUI so that we can Cheers, Andrew On 6 February 2014 00:00, Caridy Patino [email protected] wrote:
|
+1 to Having a default category helps. But the next step is to default |
Yeah, default to |
Thanks guys, I've updated the default log category to 'info'. With regards the default Y.config.logLevel, I'm not sure that this is something I best know how to do. Obviously, we could go through and update all unit tests to specify a Y.config.logLevel of 'debug', either through use of YUI_config, or as a set of params to every YUI() instantiation, but this won't help third party users. The tests will still run through Yeti and provide results, but they won't be visible in a browser. Thoughts? |
Set a default log category of info if no category was specified, or the category specified is not in the list of valid categories.
thanks @andrewnicols this looks good! |
I'll look into the tests issue later today. |
Any chance of getting this section integrated before the pull freeze on Friday? I think that changing the default logLevel should be considered as a separate issue anyway. |
I agree with @andrewnicols and this looks fine to me. I'll open the default |
As discussed with @juandopazo