This commit is contained in:
Fenny 2020-04-06 16:13:32 +02:00
commit ffb51e1b58
11 changed files with 23 additions and 23 deletions

6
.github/README.md vendored
View File

@ -307,7 +307,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -451,7 +451,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)
@ -561,4 +561,4 @@ If you want to say **thank you** and/or support the active development of `Fiber
## ⚠️ License
`Fiber` is free and open-source software licensed under the [MIT License](https://github.com/gofiber/fiber/blob/master/LICENSE) Copyright (c) 2019-present [Fenny](https://github.com/fenny) and [Fiber Contributors](https://github.com/gofiber/fiber/graphs/contributors). Official logo was created by [Vic Shóstak](https://github.com/koddr) and distributed under [Creative Commons](https://creativecommons.org/licenses/by-sa/4.0/) license (CC BY-SA 4.0 International).
`Fiber` is free and open-source software licensed under the [MIT License](https://github.com/gofiber/fiber/blob/master/LICENSE) Copyright (c) 2019-present [Fenny](https://github.com/fenny) and [Fiber Contributors](https://github.com/gofiber/fiber/graphs/contributors). Official logo was created by [Vic Shóstak](https://github.com/koddr) and distributed under [Creative Commons](https://creativecommons.org/licenses/by-sa/4.0/) license (CC BY-SA 4.0 International).

View File

@ -306,7 +306,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -450,7 +450,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -306,7 +306,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -450,7 +450,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -306,7 +306,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -450,7 +450,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -308,7 +308,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -452,7 +452,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -310,7 +310,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -454,7 +454,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -310,7 +310,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -454,7 +454,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -306,7 +306,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -450,7 +450,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -308,7 +308,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -452,7 +452,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -306,7 +306,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -450,7 +450,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)

View File

@ -306,7 +306,7 @@ func main() {
app := fiber.New()
// Optional logger config
config := logger.LoggerConfig{
config := logger.Config{
Format: "${time} - ${method} ${path}\n",
TimeFormat: "Mon, 2 Jan 2006 15:04:05 MST",
}
@ -450,7 +450,7 @@ func main() {
app := fiber.New()
// Optional recover config
config := recover.LoggerConfig{
config := recover.Config{
Handler: func(c *fiber.Ctx, err error) {
c.SendString(err.Error())
c.SendStatus(500)