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

[WIP] Add Plug.CommonLogger #18

Closed

Conversation

guilleiguaran
Copy link
Contributor

Opening for discussion.

WDYT?

bytes = resp_headers["content-length"] || "-"

# remotehost authuser [date] "request" status bytes
fun.("- - [#{date}] \"#{request}\" #{status} #{bytes}")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't find a way to get remote host and remote user right now, that explains the two "-" at the start

@josevalim
Copy link
Member

Unfortunately logging needs to wait until we solve the :error_logger situation in Elixir. It is scheduled to be solved by 1.0. I will leave this open though to help remember us.

@guilleiguaran
Copy link
Contributor Author

Note for myself: This needs to use the logger that will be implemented in Elixir (read: phoenixframework/phoenix#3 (comment))

@josevalim
Copy link
Member

@guilleiguaran I am closing this. We are having a discussion about it on phoenixframework/phoenix#235 and @jeregrine plans to work on it. The thing is that the solution will be very different than this once since we have added a Logger to Elixir. Thanks for the PR thought! ❤️

@josevalim josevalim closed this Aug 4, 2014
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

2 participants