Class Log
java.lang.Object
org.openhab.core.model.script.actions.Log
The static methods of this class are made available as functions in the scripts.
This allows a script to log to the SLF4J-Log.
- Author:
- Thomas Eichstaedt-Engelen - Initial contribution
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Creates the Log-Entryformat
with levelDEBUG
and logs under the loggers nameorg.openhab.core.model.script.<loggerName>
static void
Creates the Log-Entryformat
with levelERROR
and logs under the loggers nameorg.openhab.core.model.script.<loggerName>
static void
Creates the Log-Entryformat
with levelINFO
and logs under the loggers nameorg.openhab.core.model.script.<loggerName>
static void
Creates the Log-Entryformat
with levelWARN
and logs under the loggers nameorg.openhab.core.model.script.<loggerName>
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
logDebug
Creates the Log-Entryformat
with levelDEBUG
and logs under the loggers nameorg.openhab.core.model.script.<loggerName>
- Parameters:
loggerName
- the name of the Logger which is prefixed withorg.openhab.core.model.script.
format
- the Log-Statement which can contain placeholders '{}
'args
- the arguments to replace the placeholders contained informat
- See Also:
-
logInfo
Creates the Log-Entryformat
with levelINFO
and logs under the loggers nameorg.openhab.core.model.script.<loggerName>
- Parameters:
loggerName
- the name of the Logger which is prefixed withorg.openhab.core.model.script.
format
- the Log-Statement which can contain placeholders '{}
'args
- the arguments to replace the placeholders contained informat
- See Also:
-
logWarn
Creates the Log-Entryformat
with levelWARN
and logs under the loggers nameorg.openhab.core.model.script.<loggerName>
- Parameters:
loggerName
- the name of the Logger which is prefixed withorg.openhab.core.model.script.
format
- the Log-Statement which can contain placeholders '{}
'args
- the arguments to replace the placeholders contained informat
- See Also:
-
logError
Creates the Log-Entryformat
with levelERROR
and logs under the loggers nameorg.openhab.core.model.script.<loggerName>
- Parameters:
loggerName
- the name of the Logger which is prefixed withorg.openhab.core.model.script.
format
- the Log-Statement which can contain placeholders '{}
'args
- the arguments to replace the placeholders contained informat
- See Also:
-