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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCreates the Log-Entryformatwith levelDEBUGand logs under the loggers nameorg.openhab.core.model.script.<loggerName>static voidCreates the Log-Entryformatwith levelERRORand logs under the loggers nameorg.openhab.core.model.script.<loggerName>static voidCreates the Log-Entryformatwith levelINFOand logs under the loggers nameorg.openhab.core.model.script.<loggerName>static voidCreates the Log-Entryformatwith levelWARNand logs under the loggers nameorg.openhab.core.model.script.<loggerName>
-
Constructor Details
-
Log
public Log()
-
-
Method Details
-
logDebug
Creates the Log-Entryformatwith levelDEBUGand 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-Entryformatwith levelINFOand 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-Entryformatwith levelWARNand 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-Entryformatwith levelERRORand 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:
-