Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Mojito seems to override Y.log, without maintaining the original contract #512

Closed
sdesai opened this issue Sep 14, 2012 · 2 comments
Closed

Comments

@sdesai
Copy link

sdesai commented Sep 14, 2012

On the client, Y.log seems to get displaced in mojito-client.client.js, and the new version doesn't seem to fire the log event fired by Y.log (when CE is present). As a result code listening for the log event is never notified.

Would it be better for Mojito to listen to the event itself to add custom behavior, instead of displacing the original implementation? If not, can we re-introduce the original behavior in the displaced version.

@caridy
Copy link
Contributor

caridy commented Sep 14, 2012

Related to issue #70, we definitely need to clean this up. I wonder what is this logger doing that YUI logger doesn't. The only thing that I can see from the source is the new 'MOJITO' level. Now that node.js env is a first class citizen for YUI, YUI logger should support all the stuff we need, even when we don't have Y on a file, we should be able to require require('yui/yui-base') to get Y.log there.

@caridy
Copy link
Contributor

caridy commented Oct 17, 2012

FYI, fixed in 0.5.0pr2, and will be documented as part of 0.5.0. Y.log is the logger in mojito, no more wrapping.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants