| Page 1 of 1 | [ 4 posts ] |
|
I have a couple of questions in the YUI Builder forum, though I don't think that forum gets any traffic.
viewtopic.php?f=95&t=5538 When the builder attempts to remove logger messages, it takes too much with it. I can get around this by simply skipping this step, but I am curious if there is a "correct" way to write the code. That is, I am including the "logger" module in a loader, but because it attempts to remove everything up to a semicolon, it removes more than just the "logger". |
|
There is a build property for the regex that is used to scrub log statements. The default is this:
<property name="component.logger.regex" value="^.*?(?:logger|YAHOO.log).*?(?:;|\).*;|(?:\r?\n.*?)*?\).*;).*;?.*?\r?\n" /> You could try changing this (say by removing the first part if you are exclusively using YAHOO.log). Alternatively you could work around your particular issue by doing something like "log" + "ger" in your loader requires list. |
|
I had considered both of these options. What does the YUI code do? Are there no YUI modules that include "logger" anywhere?
|
|
The reason the option is there is so you can handle this situation via your build config.
We don't have this problem -- logger is needed for YUI when running the -debug versions of the files. When using the debug filter in loader, the logger is loaded automatically. |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group