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

Console cleanup #195

Merged
merged 4 commits into from Oct 7, 2014
Merged

Console cleanup #195

merged 4 commits into from Oct 7, 2014

Conversation

arb
Copy link
Contributor

@arb arb commented Sep 25, 2014

Fixes #189

  • Use util for string formatting
  • Switched to moment for date formatting
  • Added test for date formatting

Moment has been sort of "approved for use" as seen here

@arb arb added this to the 3.0.0 milestone Sep 25, 2014
@arb arb assigned geek Sep 25, 2014
}

internals.printEvent({
timestamp: event.timestamp,
tags: ['request'],
data: event.instance + ': ' + method + ' ' + event.path + ' ' + query + statusCode + ' (' + event.responseTime + 'ms)' + responsePayload
//instance, method, path, query, statusCode, responseTime, responsePayload
data: Util.format('%s: %s %s %s %s (%sms) %s', event.instance, method, event.path, query, statusCode, event.responseTime, responsePayload)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be worth adding format to Hoek, the same where inherits is added.

@geek geek added the feature New functionality or improvement label Oct 3, 2014
@geek
Copy link
Member

geek commented Oct 3, 2014

The test for this change fails

@arb
Copy link
Contributor Author

arb commented Oct 6, 2014

Should be G2G now @geek. Got foiled by East Coast/West Coast timezone battle.

@cjihrig cjihrig assigned cjihrig and unassigned geek Oct 7, 2014
cjihrig added a commit that referenced this pull request Oct 7, 2014
@cjihrig cjihrig merged commit f974ed3 into hapijs:v3.0.0 Oct 7, 2014
@arb arb deleted the console-cleanup branch April 28, 2016 16:53
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants