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