Skip to content

Instantly share code, notes, and snippets.

@seansummers
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seansummers/332cb53847155ec98455 to your computer and use it in GitHub Desktop.
Save seansummers/332cb53847155ec98455 to your computer and use it in GitHub Desktop.
Scriptella Java Logging test
<!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