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

request/access log #492

Closed
jknack opened this issue Oct 4, 2016 · 0 comments
Closed

request/access log #492

jknack opened this issue Oct 4, 2016 · 0 comments
Labels
Milestone

Comments

@jknack
Copy link
Member

jknack commented Oct 4, 2016

{
   use("*", new RequestLogger());
}

Prints any request that arrive to the server using the NCSA format:

127.0.0.1 - - [03/Oct/2016:22:08:35 -0300] "GET / HTTP/1.1" 200 2

The RequestLogger will be a filter you users can decide what path pattern should log:

use("*", new RequestLogger()); // any request

use("/prefix/**", new RequestLogger()); // everything under /prefix
@jknack jknack added the feature label Oct 4, 2016
@jknack jknack added this to the 1.0.0.CR8 milestone Oct 4, 2016
@jknack jknack closed this as completed in 72a7bd0 Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant