mholt/caddy-l4

Implement a log handler

オープン

#279 opened on 2024/12/29

 (0 件のコメント) (6 件のリアクション) (0 人の担当者)Go (118 件のフォーク)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (1,751 個のスター)
PR merge metrics
 (平均マージ 14d 19h) (30d で 7 merged PRs)

説明

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.

コントリビューターガイド