mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
accesslog: export the delimeter used on default formatter and improve its performance
relative to: #1601 and #1622
This commit is contained in:
@@ -12,6 +12,10 @@ import (
|
||||
rotatelogs "github.com/lestrrat-go/file-rotatelogs"
|
||||
)
|
||||
|
||||
// Default line format:
|
||||
// Time|Latency|Code|Method|Path|IP|Path Params Query Fields|Bytes Received|Bytes Sent|Request|Response|
|
||||
//
|
||||
// Read the example and its comments carefully.
|
||||
func makeAccessLog() *accesslog.AccessLog {
|
||||
// Optionally, let's Go with log rotation.
|
||||
pathToAccessLog := "./access_log.%Y%m%d%H%M"
|
||||
|
||||
Reference in New Issue
Block a user