mholt/caddy-l4

Implement a log handler

開放

#279 建立於 2024年12月29日

 (0 則留言) (6 個反應) (0 位負責人)Go (114 個分叉)github user discovery
enhancementhelp wanted

倉庫指標

星標
 (1,738 顆星)
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.

貢獻者指南