1
0
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:
Gerasimos (Makis) Maropoulos
2020-09-11 11:42:27 +03:00
parent e63d1041d2
commit 17b32e3aaa
2 changed files with 5 additions and 1 deletions

View File

@@ -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,