Log

Version 6.1 von XWikiGuest am 13 Mai 2026, 16:49
Warnung
Aus Sicherheitsgründen wird das Dokument in einem eingeschränkten Modus angezeigt, da es sich nicht um die aktuelle Version handelt. Dadurch kann es zu Abweichungen und Fehlern kommen.

Usage

Inside velocity code block:
{{include document="Log.Macros" /}}
{{velocity}}
#log("message" "level" "logger")
#loginfo("message" "logger")
#logwarn("message" "logger")
#logerror("message" "logger")
{{/velocity}}

or as wiki macro:
{{log}}message{{/log}}
or inside groovy code block:
{{include document="Log.Macros" /}}
{{groovy}}
log("message")
{{/groovy}}

or from groovy code like in Scheduler:
xwiki.includeForm("Log.Macros")
log("message")


Clear all logs

Das Makro [velocity] konnte nicht ausgeführt werden. Grund: [The execution of the [velocity] script macro is not allowed in [xwiki:Log.Macros]. Check the rights of its last author or the parameters if it's rendered from another script.]. Klicke auf diese Nachricht, um Details zu erfahren.

Das Makro [groovy] konnte nicht ausgeführt werden. Grund: [The execution of the [groovy] script macro is not allowed in [xwiki:Log.Macros]. Check the rights of its last author or the parameters if it's rendered from another script.]. Klicke auf diese Nachricht, um Details zu erfahren.

Das Makro [velocity] konnte nicht ausgeführt werden. Grund: [The execution of the [velocity] script macro is not allowed in [xwiki:Log.LogSheet]. Check the rights of its last author or the parameters if it's rendered from another script.]. Klicke auf diese Nachricht, um Details zu erfahren.