1
0
Fork 0
forked from goffee/cup

support to new log system

This commit is contained in:
Zeni Kim 2026-05-06 16:07:55 -05:00
parent a7310b24d5
commit f320c1d238
3 changed files with 22 additions and 0 deletions

View file

@ -874,6 +874,13 @@ func TemplatesFunctions(c *core.Context) *core.Response {
TemplateEnable, _ := strconv.ParseBool(TemplateEnableStr)
if TemplateEnable {
loggr := c.GetLogger()
loggr.Debug("D e b u g")
loggr.Info("I n f o")
loggr.Warning("W a r n i n g")
loggr.Error("E R R O R")
tmplData := SamplePageData()
return c.Response.Template("custom_templates_functions.html", tmplData)