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

Cleaner log functions #64

Merged
merged 1 commit into from Dec 29, 2014
Merged

Cleaner log functions #64

merged 1 commit into from Dec 29, 2014

Conversation

MattMcNam
Copy link
Member

The logging functions now automatically insert [nodecg/lib/example] rather than needing it in every log statement. This filename string is instead set when we require the logger; require(../logger)('blah') gives all messages the [blah] prefix.

I have also changed out log statements to begin with nodecg/, with the idea that extensions should get access to our logger with the (automatically set) prefix [bundleName/path/to/extension.js]. Adding nodecg to our statements should help someone visually filter between system and extension messages quickly.

…Instead, this is set when we require the logger and have it automatically insert the filename.
MattMcNam added a commit that referenced this pull request Dec 29, 2014
@MattMcNam MattMcNam merged commit c7b174f into v0.4.0 Dec 29, 2014
@MattMcNam MattMcNam deleted the clean-log-statements branch December 29, 2014 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant