forked from goffee/cup
support to new log system
This commit is contained in:
parent
a7310b24d5
commit
f320c1d238
3 changed files with 22 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue