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
No known key found for this signature in database
GPG Key ID: 5DBE766BD26A54E7
2 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,8 @@ Learn what [others saying about Iris](https://iris-go.com/testimonials/) and **[
## 👑 <a href="https://iris-go.com/donate">Supporters</a>
<p>
<a href="https://github.com/hazmi-e205"><img src="https://avatars1.githubusercontent.com/u/12555465?v=4" alt ="Hazmi Amalul" title="hazmi-e205" with="75" style="width:75px;max-width:75px;height:75px" height="75" /></a>
<a href="https://github.com/remyDeme"><img src="https://avatars1.githubusercontent.com/u/22757039?v=4" alt ="Rémy Deme" title="remyDeme" with="75" style="width:75px;max-width:75px;height:75px" height="75" /></a>
<a href="https://github.com/vincent-li"><img src="https://avatars1.githubusercontent.com/u/765470?v=4" alt ="Vincent Li" title="vincent-li" with="75" style="width:75px;max-width:75px;height:75px" height="75" /></a>
<a href="https://github.com/mtrense"><img src="https://avatars1.githubusercontent.com/u/1008285?v=4" alt ="Max Trense" title="mtrense" with="75" style="width:75px;max-width:75px;height:75px" height="75" /></a>
<a href="https://github.com/MatejLach"><img src="https://avatars1.githubusercontent.com/u/531930?v=4" alt ="Matej Lach" title="MatejLach" with="75" style="width:75px;max-width:75px;height:75px" height="75" /></a>

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,