mholt/caddy-l4

Implement a log handler

Aperta

#279 aperta il 29 dic 2024

 (0 commenti) (6 reazioni) (0 assegnatari)Go (118 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (1751 stelle)
Metriche merge PR
 (Merge medio 14g 19h) (7 PR mergiate in 30 g)

Descrizione

I would like to be able to log within a route, like in the example below:

{
    layer4 {
        :443 {
            @example tls sni example.com
            route @example {
                proxy example.com:443
            }
            @example2 tls sni example2.com
            route @example2 {
                log {
                    level DEBUG
                    format ...
                }
                proxy example2.com:443
            }
        }
    }
}


I'm currently doing this logging within the global options block, but that applies it to all routes, making it unnecessarily excessive.

Guida contributor