Skip to content

Version 1.6.6 - Add AccessLog middleware for logging HTTP requests in the Apache Common Log#203

Merged
devfeel merged 1 commit intomasterfrom
develop
Jun 27, 2019
Merged

Version 1.6.6 - Add AccessLog middleware for logging HTTP requests in the Apache Common Log#203
devfeel merged 1 commit intomasterfrom
develop

Conversation

@devfeel
Copy link
Owner

@devfeel devfeel commented Jun 27, 2019

  • New Feature: Add AccessLog middleware for logging HTTP requests in the Apache Common Log Format.
  • New Feature: Add Raw() in dotweb.Logger
  • About AccessLog:
    • implement the Apache Common Log Format
    • log file name like "dotweb_accesslog_2017_06_09.log"
    • log-example: 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326
  • How to use AccessLog middleware:
    app.Use(accesslog.Middleware())
    server.GET("/", Index).Use(accesslog.Middleware())
  • 2019-06-27 23:00 at 深圳华安大酒店

* New Feature: Add AccessLog middleware for logging HTTP requests in the Apache Common Log Format.
* New Feature: Add Raw() in dotweb.Logger
* About AccessLog:
    - implement the Apache Common Log Format
    - log file name like "dotweb_accesslog_2017_06_09.log"
    - log-example: 127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326
* How to use AccessLog middleware:
~~~ go
    app.Use(accesslog.Middleware())
    server.GET("/", Index).Use(accesslog.Middleware())
~~~
* 2019-06-27 23:00 at 深圳华安大酒店
@devfeel devfeel merged commit e5c9cab into master Jun 27, 2019
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.

1 participant