Last active
August 29, 2015 14:19
-
-
Save seansummers/332cb53847155ec98455 to your computer and use it in GitHub Desktop.
Scriptella Java Logging test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE etl SYSTEM "http://scriptella.javaforge.com/dtd/etl.dtd"> | |
<etl> | |
<description>Test Java Logging with Scriptella</description> | |
<connection id="jexl" driver="jexl"/> | |
<connection id="script" driver="script"/> | |
<script connection-id="script"> <!-- averages 20ms per call --> | |
etl.globals.put('nashornLOG', java.util.logging.Logger.getLogger('ETLscript')); | |
etl.globals.get('nashornLOG').info('This is a test from nashorn.'); | |
</script> | |
<script connection-id="jexl"> <!-- averages 3ms per call --> | |
etl.globals['jexlLOG'] = class:forName('java.util.logging.Logger').getLogger('ETLjexl'); | |
etl.globals['jexlLOG'].info('This is a test from jexl.'); | |
</script> | |
</etl> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment