phuslu / log

Fastest structured logging
MIT License
672 stars 44 forks source link

gin logger documentation: what is ginlogger.Config? #67

Closed nictuku closed 5 months ago

nictuku commented 6 months ago

The documentation for the gin logger mentions this:

    // Custom logger
    r.Use(ginlogger.SetLogger(ginlogger.Config{
        Logger: &log.Logger{
            Writer: &log.FileWriter{
                Filename: "access.log",
                MaxSize:  1024 * 1024 * 1024,
            },
        },
        Context: log.NewContext(nil).Str("foo", "bar").Value(),
        Skip:    func(c *gin.Context) bool {
            if c.Request.URL.Path == "/backdoor" {
                return true
            }
            return false
        },
    }))

What is ginlogger.Config ?

The documentation mentioned is at:

https://github.com/phuslu/log-contrib/tree/master/gin

phuslu commented 6 months ago

maybe outdated 😞 , will take a look today.

phuslu commented 5 months ago

sorry. readme is corrected, thanks.

https://github.com/phuslu/log-contrib/tree/master/gin

nictuku commented 5 months ago

Thanks!


De: Phus Lu @.> Enviado: Sunday, May 5, 2024 6:29:17 AM Para: phuslu/log @.> Cc: nictuku @.>; Author @.> Assunto: Re: [phuslu/log] gin logger documentation: what is ginlogger.Config? (Issue #67)

sorry. readme is corrected, thanks.

https://github.com/phuslu/log-contrib/tree/master/gin

— Reply to this email directly, view it on GitHubhttps://github.com/phuslu/log/issues/67#issuecomment-2094639318, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AABRR5XTHAC72YUBVUV4HADZAW7S3AVCNFSM6AAAAABGTE2SUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGYZTSMZRHA. You are receiving this because you authored the thread.Message ID: @.***>