mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
New JWT features and changes (examples updated). Improvements on the Context User and Private Error features
TODO: Write the new e-book JWT section and the HISTORY entry of the chnages and add a simple example on site docs
This commit is contained in:
@@ -29,7 +29,10 @@ func makeAccessLog() *accesslog.AccessLog {
|
||||
ac.PanicLog = accesslog.LogHandler
|
||||
|
||||
// Set Custom Formatter:
|
||||
ac.SetFormatter(&accesslog.JSON{})
|
||||
ac.SetFormatter(&accesslog.JSON{
|
||||
Indent: " ",
|
||||
HumanTime: true,
|
||||
})
|
||||
// ac.SetFormatter(&accesslog.CSV{})
|
||||
// ac.SetFormatter(&accesslog.Template{Text: "{{.Code}}"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user