2019-05-15 19:01:07.297 [INFO ] [rt.internal.loader.ScriptFileWatcher] - Loading script 'personal/test.py'
2019-05-15 19:01:07.532 [ERROR] [ipt.internal.ScriptEngineManagerImpl] - Error during evaluation of script 'file:/openhab/conf/automation/jsr223/personal/test.py': ImportError: No module named myLib in <script> at line number 2
2019-05-15 19:01:07.534 [DEBUG] [rt.internal.loader.ScriptFileWatcher] - Script loaded: personal/test.py
If you’re more comfortable with using LogAction (what is used in the rules DSL), you can also do this…
from org.eclipse.smarthome.model.script.actions.LogAction import logInfo, logDebug
test = 55555
logInfo("Rules", "This is a test [{}]", test)
logDebug("Rules", "This is a another test [{}]", test)