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

Add simple logging to example-shttp-fileserver #157

Merged
merged 1 commit into from
Jul 29, 2020
Merged

Conversation

matzf
Copy link
Contributor

@matzf matzf commented Jul 29, 2020

Not entirely sure this still fits the scope of an "example".

Log requests requests in a simple format:

<time> <remote address> "<request>" <status code> <size of reply>

for example

2020/07/29 07:49:13 19-ffaa:1:106,127.0.0.1:3173 "GET /foo HTTP/3/SCION" 200 4

This change is Reviewable

Not entirely sure this still fits the scope of an "example".

Log requests requests in a simple format:

    <time> <remote address> "<request>" <status code> <size of reply>

for example

    2020/07/29 07:49:13 19-ffaa:1:106,127.0.0.1:3173 "GET /foo HTTP/3/SCION" 200 4
Copy link
Contributor

@cmeury cmeury left a comment

Choose a reason for hiding this comment

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

Fantastic!! I think basic logging is as example as it comes :)

Copy link
Contributor

@cmeury cmeury left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@matzf matzf merged commit 3335362 into master Jul 29, 2020
@matzf matzf deleted the matzf/fileserver-log branch July 29, 2020 08: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.

2 participants