mholt/caddy-l4

Implement a log handler

开放

#279 创建于 2024年12月29日

 (0 条评论) (6 个反应) (0 位负责人)Go (118 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (1,753 个星标)
PR 合并指标
 (平均合并 14天 19小时) (30 天内合并 7 个 PR)

描述

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.

贡献者指南