summaryrefslogtreecommitdiff
path: root/modules/logging
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-08-17 10:51:26 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2021-08-17 10:51:26 -0600
commit8a974a4f8f1628c0b74c3a19cb8f2d0b48123cca (patch)
tree1b4868dba493703955249621dab5d675b5206074 /modules/logging
parent6bc87ea2ff50a962f16dfafeb125f0f947c1a885 (diff)
logging: Warn for deprecated single_field encoder
Diffstat (limited to 'modules/logging')
-rw-r--r--modules/logging/encoders.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/logging/encoders.go b/modules/logging/encoders.go
index 8b2b44c..1b5f4a6 100644
--- a/modules/logging/encoders.go
+++ b/modules/logging/encoders.go
@@ -135,6 +135,7 @@ func (SingleFieldEncoder) CaddyModule() caddy.ModuleInfo {
// Provision sets up the encoder.
func (se *SingleFieldEncoder) Provision(ctx caddy.Context) error {
+ caddy.Log().Named("caddy.logging.encoders.single_field").Warn("the 'single_field' encoder is deprecated and will be removed soon!")
if se.FallbackRaw != nil {
val, err := ctx.LoadModule(se, "FallbackRaw")
if err != nil {