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.
8 lines
254 B
Go
8 lines
254 B
Go
package api
|
|
|
|
import "git.golem15.com/golem15/summercms/modules/diary"
|
|
|
|
// pluginLog is the plugin's logger: its records carry component=journal, so
|
|
// config/log.yaml can raise or lower them (log.components.journal).
|
|
var pluginLog = diary.For("journal")
|