mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
thanks @hazmi-e205 and @remyDeme
This commit is contained in:
@@ -193,6 +193,8 @@ const (
|
||||
LogStack
|
||||
)
|
||||
|
||||
const defaultTimeFormat = "2006-01-02 15:04:05"
|
||||
|
||||
// New returns a new AccessLog value with the default values.
|
||||
// Writes to the "w". Output be further modified through its `Set/AddOutput` methods.
|
||||
// Register by its `Handler` method.
|
||||
@@ -205,7 +207,7 @@ const (
|
||||
func New(w io.Writer) *AccessLog {
|
||||
ac := &AccessLog{
|
||||
Clock: clockFunc(time.Now),
|
||||
TimeFormat: "2006-01-02 15:04:05",
|
||||
TimeFormat: defaultTimeFormat,
|
||||
IP: true,
|
||||
BytesReceived: true,
|
||||
BytesSent: true,
|
||||
|
||||
Reference in New Issue
Block a user