Files
sm-faq-plugin/controllers/api/logger.go
Jakub Zych b3cc9784de feat: console help, examples and named loggers (SummerCMS v0.4.0)
Every command gets long help and examples, descriptions in imperative
sentence case, and a warn-only TestCommandsDocumented over bonfire.CheckDocs.
The plugin logs through a diary component logger instead of the process
default logger. Requires SummerCMS v0.4.0; command names and flags unchanged.
2026-10-21 17:37:34 +02:00

8 lines
242 B
Go

package api
import "git.golem15.com/golem15/summercms/modules/diary"
// pluginLog is the plugin's logger: its records carry component=faq, so
// config/log.yaml can raise or lower them (log.components.faq).
var pluginLog = diary.For("faq")